Merge branches 'master' and 'master' of ssh://git.hiabuto.net:2222/souko/Kettenoeler

This commit is contained in:
Marcel Peterkau 2022-08-14 17:38:49 +02:00
commit 4843cc15c9

View File

@ -9,15 +9,19 @@ void RunLubeApp(uint32_t add_milimeters)
static tSystem_Status preserverSysStatusError;
if (globals.systemStatus != sysStat_Error)
preserverSysStatusError = globals.systemStatus;
if (getlastDTC(true) < DTC_LAST_DTC)
{
if (globals.systemStatus != sysStat_Error)
preserverSysStatusError = globals.systemStatus;
globals.systemStatus = sysStat_Error;
}
else
{
globals.systemStatus = preserverSysStatusError;
if (globals.systemStatus == sysStat_Error)
{
globals.systemStatus = preserverSysStatusError;
}
}
// Add traveled Distance in mm