Erasing Logs at new FW version detection

This commit is contained in:
Jason Short 2011-11-25 20:28:30 -08:00 committed by Jason Short
parent 9d55f8ee90
commit a2857f9746
1 changed files with 3 additions and 0 deletions

View File

@ -164,6 +164,9 @@ static void init_ardupilot()
delay(100); // wait for serial send
AP_Var::erase_all();
// clear logs
erase_logs(NULL, NULL);
// save the new format version
g.format_version.set_and_save(Parameters::k_format_version);