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