From a563182f3e8f6c550fd947b839344810eb176ab2 Mon Sep 17 00:00:00 2001 From: Marcel Peterkau Date: Thu, 2 Mar 2023 17:38:13 +0100 Subject: [PATCH] reload EEPROM after format to maintain DTCs --- Software/src/config.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Software/src/config.cpp b/Software/src/config.cpp index 9ea6e19..f9e4b55 100644 --- a/Software/src/config.cpp +++ b/Software/src/config.cpp @@ -36,7 +36,7 @@ void EEPROM_Process() case EE_CFG_FORMAT: FormatConfig_EEPROM(); globals.requestEEAction = EE_IDLE; - globals.systemStatus = sysStat_Shutdown; + GetConfig_EEPROM(); Debug_pushMessage("Formated EEPROM CFG\n"); break; case EE_PDS_SAVE: @@ -52,11 +52,14 @@ void EEPROM_Process() case EE_PDS_FORMAT: FormatPersistence_EEPROM(); globals.requestEEAction = EE_IDLE; + GetPersistence_EEPROM(); Debug_pushMessage("Formated EEPROM PDS\n"); break; case EE_FORMAT_ALL: FormatConfig_EEPROM(); FormatPersistence_EEPROM(); + GetConfig_EEPROM(); + GetPersistence_EEPROM(); globals.requestEEAction = EE_IDLE; Debug_pushMessage("Formated EEPROM ALL\n"); break;