AntennaTracker: Reset all storage when format version is incorrect

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

View File

@ -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