mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-25 18:06:34 +06:00
Fixed NKRO issue caused by HID_SET_PROTOCOL on Chibios platform (#17588)
This commit is contained in:
parent
6866466b07
commit
0d7edbbcbe
|
@ -665,8 +665,7 @@ static bool usb_request_hook_cb(USBDriver *usbp) {
|
||||||
if ((usbp->setup[4] == KEYBOARD_INTERFACE) && (usbp->setup[5] == 0)) { /* wIndex */
|
if ((usbp->setup[4] == KEYBOARD_INTERFACE) && (usbp->setup[5] == 0)) { /* wIndex */
|
||||||
keyboard_protocol = ((usbp->setup[2]) != 0x00); /* LSB(wValue) */
|
keyboard_protocol = ((usbp->setup[2]) != 0x00); /* LSB(wValue) */
|
||||||
#ifdef NKRO_ENABLE
|
#ifdef NKRO_ENABLE
|
||||||
keymap_config.nkro = !!keyboard_protocol;
|
if (!keyboard_protocol && keyboard_idle) {
|
||||||
if (!keymap_config.nkro && keyboard_idle) {
|
|
||||||
#else /* NKRO_ENABLE */
|
#else /* NKRO_ENABLE */
|
||||||
if (keyboard_idle) {
|
if (keyboard_idle) {
|
||||||
#endif /* NKRO_ENABLE */
|
#endif /* NKRO_ENABLE */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user