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