mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-19 20:45:18 -05:00
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.
This commit is contained in:
committed by
Pete Johanson
parent
8c99313a67
commit
1dccb7fe50
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user