fix: during safe-shutdown, trigger the connectionManager, to avoid interrupting the safe-shutdown

This commit is contained in:
uhi22 2023-05-07 22:31:44 +02:00
parent 74673432a2
commit 4ed80fd0ea

View file

@ -642,6 +642,7 @@ class fsmPev():
def stateFunctionSafeShutDownWaitForChargerShutdown(self): def stateFunctionSafeShutDownWaitForChargerShutdown(self):
# wait state, to give the charger the time to stop the current. # 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): if (self.DelayCycles>0):
self.DelayCycles-=1 self.DelayCycles-=1
return return
@ -654,6 +655,7 @@ class fsmPev():
def stateFunctionSafeShutDownWaitForContactorsOpen(self): def stateFunctionSafeShutDownWaitForContactorsOpen(self):
# wait state, to give the contactors the time to open. # 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): if (self.DelayCycles>0):
self.DelayCycles-=1 self.DelayCycles-=1
return return