diff --git a/Software/data/index.htm b/Software/data/index.htm index f3c7934..d9bac0a 100644 --- a/Software/data/index.htm +++ b/Software/data/index.htm @@ -264,24 +264,7 @@
-
- -+
+
+
+ diff --git a/Software/src/config.cpp b/Software/src/config.cpp index fc56ba3..ce62867 100644 --- a/Software/src/config.cpp +++ b/Software/src/config.cpp @@ -19,15 +19,6 @@ void InitEEPROM() { return; } - GetConfig_EEPROM(); - - if (LubeConfig.EEPROM_Version != eeVersion) - { - FormatConfig_EEPROM(); - globals.systemStatus = sysStat_Error; - MaintainDTC(DTC_EEPROM_VERSION_BAD, true); - return; - } } void EEPROM_Process() @@ -85,6 +76,7 @@ void GetConfig_EEPROM() if (Checksum_EEPROM((uint8_t *)&LubeConfig, sizeof(LubeConfig)) != checksum) { MaintainDTC(DTC_EEPROM_CFG_BAD, DTC_CRITICAL, true); + FormatConfig_EEPROM(); } LubeConfig.checksum = checksum; } diff --git a/Software/src/webui.cpp b/Software/src/webui.cpp index d6a4ab5..1718194 100644 --- a/Software/src/webui.cpp +++ b/Software/src/webui.cpp @@ -308,6 +308,15 @@ void WebserverPOST_Callback(AsyncWebServerRequest *request) PersistenceData.tankRemain_µl = LubeConfig.tankCapacity_ml * 1000; globals.requestEEAction = EE_PDS_SAVE; } + if (p->name() == "reset_ee_cfg") + { + globals.requestEEAction = EE_CFG_FORMAT; + } + if (p->name() == "reset_ee_pds") + { + globals.requestEEAction = EE_PDS_FORMAT; + } + // end: POST Form Maintenance } }