Copter: Reset all storage when format version is incorrect

This commit is contained in:
Michael du Breuil 2018-12-28 18:05:25 -07:00 committed by Andrew Tridgell
parent ae6dc01cd5
commit fc2ea009fb

View File

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