From 826a77e90c467bb5e3cf312267463fb645298252 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 14 Oct 2012 13:58:08 +0000 Subject: [PATCH] Fixed maximum allowed keyboard key code usage of 0x65 rather than 0xFF for the HID_DESCRIPTOR_KEYBOARD() macro (thanks to David Monro) --- LUFA/DoxygenPages/ChangeLog.txt | 5 +++-- LUFA/Drivers/USB/Class/Common/HIDClassCommon.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/LUFA/DoxygenPages/ChangeLog.txt b/LUFA/DoxygenPages/ChangeLog.txt index 1337d911b1..bf29039361 100644 --- a/LUFA/DoxygenPages/ChangeLog.txt +++ b/LUFA/DoxygenPages/ChangeLog.txt @@ -22,7 +22,7 @@ * - Added workaround for broken VBUS detection on AVR8 devices when a bootloader starts the application * via a software jump without first turning off the OTG pad (thanks to Simon Inns) * - Library Applications: - * - None + * - None * * Fixed: * - Core: @@ -32,8 +32,9 @@ * configuration token set * - Fixed possible rounding in the VERSION_BCD() macros for some 0.01 step increments (thanks to Oliver Zander) * - Fixed incorrect Dataflash functionality in the USBKEY board if the driver is modified for a single Dataflash chip (thanks to Jonathan Oakley) - * - Fixed incorrect definitions of \c HID_KEYBOARD_LED_KANA, \c HID_KEYBOARD_SC_KEYPAD_EQUAL_SIGN and \c HID_KEYBOARD_SC_KEYPAD_EQUAL_SIGN_AS400 + * - Fixed incorrect definitions of \c HID_KEYBOARD_LED_KANA, \c HID_KEYBOARD_SC_KEYPAD_EQUAL_SIGN and \c HID_KEYBOARD_SC_KEYPAD_EQUAL_SIGN_AS400 * and added a missing definition for \c HID_KEYBOARD_SC_APPLICATION (thanks to David Monro) + * - Fixed maximum allowed keyboard key code usage of \c 0x65 rather than \c 0xFF for the \c HID_DESCRIPTOR_KEYBOARD() macro (thanks to David Monro) * - Library Applications: * - Fixed broken RESET_TOGGLES_LIBUSB_COMPAT compile time option in the AVRISP-MKII project * - Fixed incompatibility in the CDC class bootloader on some systems (thanks to Sylvain Munaut) diff --git a/LUFA/Drivers/USB/Class/Common/HIDClassCommon.h b/LUFA/Drivers/USB/Class/Common/HIDClassCommon.h index ec345af9ee..e2e3883dc0 100644 --- a/LUFA/Drivers/USB/Class/Common/HIDClassCommon.h +++ b/LUFA/Drivers/USB/Class/Common/HIDClassCommon.h @@ -428,10 +428,10 @@ HID_RI_REPORT_SIZE(8, 0x03), \ HID_RI_OUTPUT(8, HID_IOF_CONSTANT), \ HID_RI_LOGICAL_MINIMUM(8, 0x00), \ - HID_RI_LOGICAL_MAXIMUM(8, 0x65), \ + HID_RI_LOGICAL_MAXIMUM(8, 0xFF), \ HID_RI_USAGE_PAGE(8, 0x07), \ HID_RI_USAGE_MINIMUM(8, 0x00), \ - HID_RI_USAGE_MAXIMUM(8, 0x65), \ + HID_RI_USAGE_MAXIMUM(8, 0xFF), \ HID_RI_REPORT_COUNT(8, MaxKeys), \ HID_RI_REPORT_SIZE(8, 0x08), \ HID_RI_INPUT(8, HID_IOF_DATA | HID_IOF_ARRAY | HID_IOF_ABSOLUTE), \