From 2bf3bdd8d1bcc57e4a20e0449087be1b2dd96869 Mon Sep 17 00:00:00 2001 From: Katherine Temkin Date: Sat, 3 Oct 2020 22:45:09 -0600 Subject: [PATCH] types.usb3: fix flipped LUP/LDN (never trust a book) --- usb_protocol/types/superspeed/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usb_protocol/types/superspeed/__init__.py b/usb_protocol/types/superspeed/__init__.py index 548c809..a8a0a93 100644 --- a/usb_protocol/types/superspeed/__init__.py +++ b/usb_protocol/types/superspeed/__init__.py @@ -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