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 52297679c4
commit 19c3c27ed0

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);