Skip to content

Commit 944e107

Browse files
committed
Fix report count, remove irrelevant comments
1 parent 65762f6 commit 944e107

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

micropython/usbd/hidkeypad.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
from micropython import const
66
_INTERFACE_PROTOCOL_KEYBOARD = const(0x01)
77

8-
# Basic 3-button mouse HID Report Descriptor.
9-
# This is cribbed from Appendix E.10 of the HID v1.11 document.
108
_KEYPAD_REPORT_DESC = bytes(
119
[
1210
0x05, 0x01, # Usage Page (Generic Desktop)
@@ -17,7 +15,7 @@
1715
0x29, 0xff, # Usage Maximum (ff),
1816
0x15, 0x00, # Logical Minimum (0),
1917
0x25, 0xff, # Logical Maximum (ff),
20-
0x95, 0x03, # Report Count (3),
18+
0x95, 0x01, # Report Count (1),
2119
0x75, 0x08, # Report Size (8),
2220
0x81, 0x00, # Input (Data, Array, Absolute)
2321
0xC0, # End Collection

0 commit comments

Comments
 (0)