Skip to content

Commit 3da7aa5

Browse files
committed
Correct _PDO_RESPONSE_CODES list
According to the HUSB238 datasheet the value 010 in the PD_RESPONSE section of the PD_STATUS1 register should be reserved. Updated the _PDO_RESPONSE_CODES list to account for this, so that when the list is accessed using the self.response value the correct response string is returned.
1 parent f34da9e commit 3da7aa5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adafruit_husb238.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ class Adafruit_HUSB238:
143143
_PDO_RESPONSE_CODES = [
144144
"NO RESPONSE",
145145
None, # Success
146+
None, # Reserved
146147
"INVALID COMMAND OR ARGUMENT",
147148
"COMMAND NOT SUPPORTED",
148149
"TRANSACTION FAILED, NO GOOD CRC",

0 commit comments

Comments
 (0)