Plane: Reset all storage when format version is incorrect

This commit is contained in:
Michael du Breuil 2018-12-28 18:04:47 -07:00 committed by Andrew Tridgell
parent 6613c678a0
commit ae6dc01cd5
1 changed files with 1 additions and 0 deletions

View File

@ -1291,6 +1291,7 @@ void Plane::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