mirror of https://github.com/ArduPilot/ardupilot
cleanup
This commit is contained in:
parent
7e1d41be14
commit
8a1fcfd0f4
|
@ -163,16 +163,13 @@ static void init_ardupilot()
|
||||||
Serial.printf_P(PSTR("Firmware change: erasing EEPROM...\n"));
|
Serial.printf_P(PSTR("Firmware change: erasing EEPROM...\n"));
|
||||||
delay(100); // wait for serial send
|
delay(100); // wait for serial send
|
||||||
AP_Var::erase_all();
|
AP_Var::erase_all();
|
||||||
|
|
||||||
// erase DataFlash on format version change
|
// erase DataFlash on format version change
|
||||||
#if LOGGING_ENABLED == ENABLED
|
#if LOGGING_ENABLED == ENABLED
|
||||||
DataFlash.Init();
|
DataFlash.Init();
|
||||||
erase_logs(NULL, NULL);
|
erase_logs(NULL, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// clear logs - createing infinate lockup
|
|
||||||
//erase_logs(NULL, NULL);
|
|
||||||
|
|
||||||
// save the new format version
|
// save the new format version
|
||||||
g.format_version.set_and_save(Parameters::k_format_version);
|
g.format_version.set_and_save(Parameters::k_format_version);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue