EEPROM reset-Function added to WebUI
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user