You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# PDO response codes_PDO_RESPONSE_CODES= [
"NO RESPONSE",
None, # SuccessNone, # Reserved "INVALID COMMAND OR ARGUMENT",
"COMMAND NOT SUPPORTED",
"TRANSACTION FAILED, NO GOOD CRC",
]
The text was updated successfully, but these errors were encountered:
In this line:
Adafruit_CircuitPython_HUSB238/adafruit_husb238.py
Line 217 in 94aab9b
The
self.response
value is being used to access the_PDO_RESPONSE_CODES
list.However at list index 2 is the value
"INVALID COMMAND OR ARGUMENT"
when this should be at list index 3.This is because in the datasheet: https://en.hynetek.com/uploadfiles/site/219/news/eb6cc420-847e-40ec-a352-a86fbeedd331.pdf
The value
010
is not used in thePD_RESPONSE
section of thePD_STATUS1
register.The fix is to add another
None
value in the list.So the following code:
Adafruit_CircuitPython_HUSB238/adafruit_husb238.py
Lines 141 to 147 in 94aab9b
Should instead be:
The text was updated successfully, but these errors were encountered: