improved DTC-Handling for EEPROM
This commit is contained in:
parent
17ed1ff7fa
commit
38185e9056
@ -17,8 +17,6 @@ void InitEEPROM()
|
||||
ee.begin();
|
||||
if (!checkEEPROMavailable())
|
||||
{
|
||||
globals.systemStatus = sysStat_Error;
|
||||
MaintainDTC(DTC_NO_EEPROM_FOUND, true);
|
||||
return;
|
||||
}
|
||||
GetConfig_EEPROM();
|
||||
@ -227,7 +225,9 @@ boolean checkEEPROMavailable()
|
||||
if (!ee.isConnected())
|
||||
{
|
||||
MaintainDTC(DTC_NO_EEPROM_FOUND, true);
|
||||
globals.systemStatus = sysStat_Error;
|
||||
return false;
|
||||
}
|
||||
MaintainDTC(DTC_NO_EEPROM_FOUND, false);
|
||||
return true;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user