Bugfix in DTC and SystemStatus Handling
This commit is contained in:
parent
ad6332acd4
commit
94e34fb593
@ -9,16 +9,20 @@ void RunLubeApp(uint32_t add_milimeters)
|
||||
|
||||
static tSystem_Status preserverSysStatusError;
|
||||
|
||||
if (getlastDTC(true) < DTC_LAST_DTC)
|
||||
{
|
||||
if (globals.systemStatus != sysStat_Error)
|
||||
preserverSysStatusError = globals.systemStatus;
|
||||
|
||||
if (getlastDTC(true) < DTC_LAST_DTC)
|
||||
{
|
||||
globals.systemStatus = sysStat_Error;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (globals.systemStatus == sysStat_Error)
|
||||
{
|
||||
globals.systemStatus = preserverSysStatusError;
|
||||
}
|
||||
}
|
||||
|
||||
// Add traveled Distance in mm
|
||||
PersistenceData.TravelDistance_highRes_mm += add_milimeters;
|
||||
|
Loading…
x
Reference in New Issue
Block a user