Sub: Reset all storage when format version is incorrect

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

View File

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