aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Tang <e_l_tang@outlook.com>2017-01-24 21:28:02 -0800
committerEric Tang <e_l_tang@outlook.com>2017-01-24 21:28:02 -0800
commitd1862656bba0763aa84843a8df0f3526f394e561 (patch)
tree1ad5420f78e9b55a7d50bec9ce32e516fad0f619
parentfd50862e4ec934b2a7dbf60891dc8fd95933b26f (diff)
downloadlufa-d1862656bba0763aa84843a8df0f3526f394e561.tar.gz
lufa-d1862656bba0763aa84843a8df0f3526f394e561.tar.bz2
lufa-d1862656bba0763aa84843a8df0f3526f394e561.zip
Fix HID_DESCRIPTOR_KEYBOARD()
This will prevent future occurrences of jackhumbert/qmk_firmware#312.
-rw-r--r--LUFA/Drivers/USB/Class/Common/HIDClassCommon.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/Class/Common/HIDClassCommon.h b/LUFA/Drivers/USB/Class/Common/HIDClassCommon.h
index d0ed1eb9c..6227d3b53 100644
--- a/LUFA/Drivers/USB/Class/Common/HIDClassCommon.h
+++ b/LUFA/Drivers/USB/Class/Common/HIDClassCommon.h
@@ -445,7 +445,7 @@
HID_RI_REPORT_SIZE(8, 0x03), \
HID_RI_OUTPUT(8, HID_IOF_CONSTANT), \
HID_RI_LOGICAL_MINIMUM(8, 0x00), \
- HID_RI_LOGICAL_MAXIMUM(8, 0xFF), \
+ HID_RI_LOGICAL_MAXIMUM(16, 0xFF), \
HID_RI_USAGE_PAGE(8, 0x07), \
HID_RI_USAGE_MINIMUM(8, 0x00), \
HID_RI_USAGE_MAXIMUM(8, 0xFF), \
@@ -679,4 +679,3 @@
#endif
/** @} */
-