From d920795537eae2f739a8dee14f87215406e472ae Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Fri, 28 Dec 2018 18:05:47 -0700 Subject: [PATCH] Rover: Reset all storage when format version is incorrect --- APMrover2/Parameters.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/APMrover2/Parameters.cpp b/APMrover2/Parameters.cpp index 54d1d884a8..ed14c5cac5 100644 --- a/APMrover2/Parameters.cpp +++ b/APMrover2/Parameters.cpp @@ -761,6 +761,7 @@ void Rover::load_parameters(void) g.format_version != Parameters::k_format_version) { // erase all parameters hal.console->printf("Firmware change: erasing EEPROM...\n"); + StorageManager::erase(); AP_Param::erase_all(); // save the current format version