mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Copter: Reset all storage when format version is incorrect
This commit is contained in:
parent
ae6dc01cd5
commit
fc2ea009fb
@ -1053,6 +1053,7 @@ void Copter::load_parameters(void)
|
||||
|
||||
// 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
Block a user