Browse Source

types.usb3: fix flipped LUP/LDN (never trust a book)

main
Katherine Temkin 4 years ago
parent
commit
2bf3bdd8d1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      usb_protocol/types/superspeed/__init__.py

+ 2
- 2
usb_protocol/types/superspeed/__init__.py View File

@@ -16,8 +16,8 @@ class LinkCommand(IntEnum):
LAU = 5 # Power State Acceptance
LXU = 6 # Power State Rejection
LPMA = 7 # Power State Acknowledgement
LDN = 8 # Downstream-facing Keep-alive
LUP = 11 # Upstream-facing Keep-alive
LUP = 8 # Downstream-facing Keep-alive
LDN = 11 # Upstream-facing Keep-alive

def get_class(self):
return int(self) >> 2


Loading…
Cancel
Save