diff options
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/hid.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/hid.c b/app/src/hid.c index 756ed90..b524b09 100644 --- a/app/src/hid.c +++ b/app/src/hid.c @@ -117,6 +117,8 @@ static inline int deselect_keyboard_usage(zmk_key_t usage) { #endif #define TOGGLE_CONSUMER(match, val) \ + COND_CODE_1(IS_ENABLED(CONFIG_ZMK_HID_CONSUMER_REPORT_USAGES_BASIC), \ + (if (val > 0xFF) { return -ENOTSUP; }), ()) \ for (int idx = 0; idx < CONFIG_ZMK_HID_CONSUMER_REPORT_SIZE; idx++) { \ if (consumer_report.body.keys[idx] != match) { \ continue; \ |