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