From 4ed80fd0ea29927e97ff5afff3d5091bc73d8cf8 Mon Sep 17 00:00:00 2001 From: uhi22 Date: Sun, 7 May 2023 22:31:44 +0200 Subject: [PATCH] fix: during safe-shutdown, trigger the connectionManager, to avoid interrupting the safe-shutdown --- fsmPev.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fsmPev.py b/fsmPev.py index 367d4c7..59bde31 100644 --- a/fsmPev.py +++ b/fsmPev.py @@ -642,9 +642,10 @@ class fsmPev(): def stateFunctionSafeShutDownWaitForChargerShutdown(self): # wait state, to give the charger the time to stop the current. + self.connMgr.ApplOk() # Trigger the communication manager, so that it does not disturb our safe-shutdown. if (self.DelayCycles>0): self.DelayCycles-=1 - return + return # Now the current flow is stopped by the charger. We can safely open the contactors: self.addToTrace("Safe-shutdown-sequence: opening contactors") self.hardwareInterface.setPowerRelayOff() @@ -654,6 +655,7 @@ class fsmPev(): def stateFunctionSafeShutDownWaitForContactorsOpen(self): # wait state, to give the contactors the time to open. + self.connMgr.ApplOk() # Trigger the communication manager, so that it does not disturb our safe-shutdown. if (self.DelayCycles>0): self.DelayCycles-=1 return