From 1dccb7fe50a349cda94603042b5e81ae7c606c2a Mon Sep 17 00:00:00 2001 From: Peter Johanson Date: Thu, 7 Apr 2022 16:24:25 +0000 Subject: [PATCH] fix(hid): Use a full valid range for consumer page * Switch to a logical max for the consumer page that avoid signed issue, and still allows full range of documented consumer page values. --- app/include/zmk/hid.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/include/zmk/hid.h b/app/include/zmk/hid.h index 61c5fa80..f507b56a 100644 --- a/app/include/zmk/hid.h +++ b/app/include/zmk/hid.h @@ -78,9 +78,9 @@ static const uint8_t zmk_hid_report_desc[] = { HID_REPORT_SIZE(0x08), #elif IS_ENABLED(CONFIG_ZMK_HID_CONSUMER_REPORT_USAGES_FULL) HID_LOGICAL_MIN8(0x00), - HID_LOGICAL_MAX16(0xFF, 0xFF), + HID_LOGICAL_MAX16(0xFF, 0x0F), HID_USAGE_MIN8(0x00), - HID_USAGE_MAX16(0xFF, 0xFF), + HID_USAGE_MAX16(0xFF, 0x0F), HID_REPORT_SIZE(0x10), #else #error "A proper consumer HID report usage range must be selected"