From 335b883043696b41a49185fd187a41a854e450f1 Mon Sep 17 00:00:00 2001 From: Marcel Peterkau Date: Thu, 2 Mar 2023 17:37:43 +0100 Subject: [PATCH] fixed cannot shutdown when in ErrorState --- Software/src/dtc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Software/src/dtc.cpp b/Software/src/dtc.cpp index 23a0f55..4641b0b 100644 --- a/Software/src/dtc.cpp +++ b/Software/src/dtc.cpp @@ -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) {