mirror of
https://github.com/uhi22/pyPLC.git
synced 2024-11-20 01:13:58 +00:00
workaround: in SessionSetupResponse, treat ok as valid
This commit is contained in:
parent
4c862155a8
commit
5c44e17615
1 changed files with 4 additions and 1 deletions
|
@ -286,7 +286,10 @@ class fsmPev():
|
|||
self.sessionId = strSessionId
|
||||
except:
|
||||
self.addToTrace("ERROR: Could not decode the sessionID")
|
||||
if (strResponseCode!="OK_NewSessionEstablished"):
|
||||
if ((strResponseCode!="OK_NewSessionEstablished") and (strResponseCode!="OK")):
|
||||
# According to the standard, the only valid response code is OK_NewSessionEstablished.
|
||||
# But the ABB chargers use "OK", so we need to accept this, too. Discussed
|
||||
# here: https://openinverter.org/forum/viewtopic.php?p=58399#p58399
|
||||
self.addToTrace("Wrong response code. Aborting.")
|
||||
self.enterState(stateUnrecoverableError)
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue