mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-22 00:16:41 +06:00
Reset HID report mode on USB_EVENT_RESET event
This commit is contained in:
parent
7fbf1e2af2
commit
8e390f92a2
|
@ -203,6 +203,7 @@ static void usb_event_cb(USBDriver *usbp, usbevent_t event) {
|
||||||
case USB_EVENT_RESET:
|
case USB_EVENT_RESET:
|
||||||
usb_event_queue_enqueue(event);
|
usb_event_queue_enqueue(event);
|
||||||
chSysLockFromISR();
|
chSysLockFromISR();
|
||||||
|
if (event == USB_EVENT_RESET) keyboard_protocol = 1;
|
||||||
for (int i = 0; i < USB_ENDPOINT_IN_COUNT; i++) {
|
for (int i = 0; i < USB_ENDPOINT_IN_COUNT; i++) {
|
||||||
usb_endpoint_in_suspend_cb(&usb_endpoints_in[i]);
|
usb_endpoint_in_suspend_cb(&usb_endpoints_in[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user