Skip to content

Commit

Permalink
Only try to read the report ID from SetReport when the keyboard is pa…
Browse files Browse the repository at this point in the history
…rt of the shared EP

Fixes qmk#4471
Fixes qmk#4517
  • Loading branch information
fauxpark authored and zer09 committed Dec 8, 2018
1 parent 7183957 commit c0af699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tmk_core/protocol/lufa/lufa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c0af699

Please sign in to comment.