diff options
author | fauxpark <fauxpark@gmail.com> | 2018-12-05 11:14:55 +1100 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-12-05 08:50:29 -0800 |
commit | d6b7ca04f22e3f1e0f9ce4074f3902fddba338ad (patch) | |
tree | 3a874a621687ed11e12ddcd8d0a5887e9246dac8 /tmk_core/protocol | |
parent | 0677e64655f230722eaa35160acaefacf3684a43 (diff) |
Only try to read the report ID from SetReport when the keyboard is part of the shared EP
Fixes #4471
Fixes #4517
Diffstat (limited to 'tmk_core/protocol')
-rw-r--r-- | tmk_core/protocol/lufa/lufa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index e88e6f34aa..27cf51b161 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c @@ -517,7 +517,7 @@ void EVENT_USB_Device_ControlRequest(void) if (USB_DeviceState == DEVICE_STATE_Unattached) return; } -#if defined(SHARED_EP_ENABLE) +#ifdef KEYBOARD_SHARED_EP uint8_t report_id = REPORT_ID_KEYBOARD; if (keyboard_protocol) { report_id = Endpoint_Read_8(); |