From ae6dc01cd57e9040e4c158ebbc787c8d9cd0d86c Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Fri, 28 Dec 2018 18:04:47 -0700 Subject: [PATCH] Plane: Reset all storage when format version is incorrect --- ArduPlane/Parameters.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ArduPlane/Parameters.cpp b/ArduPlane/Parameters.cpp index 6c947db8b5..7dfde82888 100644 --- a/ArduPlane/Parameters.cpp +++ b/ArduPlane/Parameters.cpp @@ -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