mirror of https://github.com/ArduPilot/ardupilot
AntennaTracker: Reset all storage when format version is incorrect
This commit is contained in:
parent
d920795537
commit
c1e3e3f8c4
|
@ -392,6 +392,7 @@ void Tracker::load_parameters(void)
|
||||||
|
|
||||||
// erase all parameters
|
// erase all parameters
|
||||||
hal.console->printf("Firmware change: erasing EEPROM...\n");
|
hal.console->printf("Firmware change: erasing EEPROM...\n");
|
||||||
|
StorageManager::erase();
|
||||||
AP_Param::erase_all();
|
AP_Param::erase_all();
|
||||||
|
|
||||||
// save the current format version
|
// save the current format version
|
||||||
|
|
Loading…
Reference in New Issue