mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-25 18:06:34 +06:00
Only try to read the report ID from SetReport when the keyboard is part of the shared EP
Fixes #4471 Fixes #4517
This commit is contained in:
parent
0677e64655
commit
d6b7ca04f2
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user