Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit e30376e

Browse files
committed
Fix HID_SET_IDLE
Based on arduino/ArduinoCore-avr#422, we need to use `wValueH` rather than `wValueL` when handling the `HID_SET_IDLE` request, according to the USB spec. Fixes #71. Signed-off-by: Gergely Nagy <algernon@keyboard.io>
1 parent a42464a commit e30376e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HID.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ bool HID_::setup(USBSetup& setup) {
152152
return true;
153153
}
154154
if (request == HID_SET_IDLE) {
155-
idle = setup.wValueL;
155+
idle = setup.wValueH;
156156
return true;
157157
}
158158
if (request == HID_SET_REPORT) {

0 commit comments

Comments
 (0)