fixed cannot shutdown when in ErrorState
This commit is contained in:
		| @@ -116,7 +116,7 @@ void DTC_Process() | ||||
|     if (getlastDTC(false) < DTC_LAST_DTC) | ||||
|     { | ||||
|         globals.hasDTC = true; | ||||
|         if (getlastDTC_Severity(true, DTC_CRITICAL) < DTC_LAST_DTC) | ||||
|         if (getlastDTC_Severity(true, DTC_CRITICAL) < DTC_LAST_DTC && globals.systemStatus != sysStat_Shutdown) | ||||
|         { | ||||
|             if (globals.systemStatus != sysStat_Error) | ||||
|             { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user