From: Takayuki Matsubara <takayuki.1229@gmail.com>
Date: Tue, 31 Oct 2017 13:51:36 +0000 (+0900)
Subject: fix Logical Maximum to be recognized as 255 instead of -1
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4160659f56404fc165b6232c20b7a27f5a0b476f;p=qmk_firmware.git

fix Logical Maximum to be recognized as 255 instead of -1

SEE ALSO: https://github.com/qmk/qmk_firmware/issues/312
---

diff --git a/tmk_core/protocol/chibios/usb_main.c b/tmk_core/protocol/chibios/usb_main.c
index 59edab9bd..9bfdf572a 100644
--- a/tmk_core/protocol/chibios/usb_main.c
+++ b/tmk_core/protocol/chibios/usb_main.c
@@ -146,7 +146,7 @@ static const uint8_t keyboard_hid_report_desc_data[] = {
   0x95, KBD_REPORT_KEYS,          //   Report Count (),
   0x75, 0x08,                //   Report Size (8),
   0x15, 0x00,                //   Logical Minimum (0),
-  0x25, 0xFF,                //   Logical Maximum(255),
+  0x26, 0xFF, 0x00,          //   Logical Maximum(255),
   0x05, 0x07,                //   Usage Page (Key Codes),
   0x19, 0x00,                //   Usage Minimum (0),
   0x29, 0xFF,                //   Usage Maximum (255),