Fix: timeout increased from 1s to 5s in state WaitForChargeParameterDiscoveryResponse

This commit is contained in:
uhi22 2023-05-03 08:03:51 +02:00
parent b36e6c9f11
commit 7b35a5f79b

View file

@ -130,6 +130,8 @@ class fsmPev():
def isTooLong(self):
# The timeout handling function.
limit = 33 # number of call cycles until timeout. Default 33 cycles with 30ms, means approx. 1 second.
if (self.state==stateWaitForChargeParameterDiscoveryResponse):
limit = 5*33 # On some charger models, the chargeParameterDiscovery needs more than a second. Wait at least 5s.
if (self.state==stateWaitForCableCheckResponse):
limit = 30*33 # CableCheck may need some time. Wait at least 30s.
if (self.state==stateWaitForPreChargeResponse):