Rover: Reset all storage when format version is incorrect

This commit is contained in:
Michael du Breuil 2018-12-28 18:05:47 -07:00 committed by Andrew Tridgell
parent 58895b5a82
commit d920795537
1 changed files with 1 additions and 0 deletions

View File

@ -761,6 +761,7 @@ void Rover::load_parameters(void)
g.format_version != Parameters::k_format_version) { g.format_version != Parameters::k_format_version) {
// 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