Skip to content

Commit 0c27ba3

Browse files
committed
Fix "No Subclass" (Reserved) constant definition
1 parent cceedb5 commit 0c27ba3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_usb_host_descriptors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
INTERFACE_HID = 0x03
4949
SUBCLASS_BOOT = 0x01
50-
SUBCLASS_REPORT = None
50+
SUBCLASS_RESERVED = 0x00
5151
PROTOCOL_MOUSE = 0x02
5252
PROTOCOL_KEYBOARD = 0x01
5353

@@ -238,7 +238,7 @@ def find_report_mouse_endpoint(device):
238238
:param device: The device to search within
239239
:return: mouse_interface_index, mouse_endpoint_address if found, or None, None otherwise
240240
"""
241-
return _find_endpoint(device, PROTOCOL_MOUSE, SUBCLASS_REPORT)
241+
return _find_endpoint(device, PROTOCOL_MOUSE, SUBCLASS_RESERVED)
242242

243243

244244
def find_boot_keyboard_endpoint(device):

0 commit comments

Comments
 (0)