Elelabs / elelabs-zigbee-ezsp-utility

Elelabs Zigbee EZSP Utility to perform firmware update on a range of Elelabs EZSP products as well as other generic EZSP adapters.
Apache License 2.0
137 stars 28 forks source link

getResponse inconsistent return value #7

Closed FlorianLudwig closed 3 years ago

FlorianLudwig commented 4 years ago

getResponse response with two or three value tuple in different situations. Should be consistent to avoid problems like:

Traceback (most recent call last):
  File "Elelabs_EzspFwUtility.py", line 528, in <module>
    elelabs.probe()
  File "Elelabs_EzspFwUtility.py", line 309, in probe
    ezsp_status = ezsp.initEzspProtocol()
  File "Elelabs_EzspFwUtility.py", line 288, in initEzspProtocol
    ash_status = self.ash.sendResetFrame()
  File "Elelabs_EzspFwUtility.py", line 180, in sendResetFrame
    status, response = v # self.getResponse()
ValueError: too many values to unpack (expected 2)
NilsBohr commented 3 years ago

Fixed