mirror of
https://github.com/uhi22/pyPLC.git
synced 2024-11-10 01:05:42 +00:00
Fix: timeout increased from 1s to 5s in state WaitForChargeParameterDiscoveryResponse
This commit is contained in:
parent
b36e6c9f11
commit
7b35a5f79b
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue