Skip to content

Commit e97b231

Browse files
committed
shared-module/usb_hid: fix keyboard descriptor
Adjust Report Count for the LED field of the Keyboard Report Descriptor to be consistent with the number of usages.
1 parent 150db00 commit e97b231

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared-module/usb_hid/Device.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ static const uint8_t keyboard_report_descriptor[] = {
5151
0x95, 0x01, // Report Count (1)
5252
0x75, 0x08, // Report Size (8)
5353
0x81, 0x01, // Input (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position)
54-
0x95, 0x03, // Report Count (3)
54+
0x95, 0x05, // Report Count (5)
5555
0x75, 0x01, // Report Size (1)
5656
0x05, 0x08, // Usage Page (LEDs)
5757
0x19, 0x01, // Usage Minimum (Num Lock)
5858
0x29, 0x05, // Usage Maximum (Kana)
5959
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
6060
0x95, 0x01, // Report Count (1)
61-
0x75, 0x05, // Report Size (5)
61+
0x75, 0x03, // Report Size (3)
6262
0x91, 0x01, // Output (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
6363
0x95, 0x06, // Report Count (6)
6464
0x75, 0x08, // Report Size (8)

0 commit comments

Comments
 (0)