Skip to content

Commit

Permalink
Fixed NKRO issue caused by HID_SET_PROTOCOL on Chibios platform (qmk#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lokher committed Dec 8, 2022
1 parent 6866466 commit 0d7edbb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tmk_core/protocol/chibios/usb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,8 +665,7 @@ static bool usb_request_hook_cb(USBDriver *usbp) {
if ((usbp->setup[4] == KEYBOARD_INTERFACE) && (usbp->setup[5] == 0)) { /* wIndex */
keyboard_protocol = ((usbp->setup[2]) != 0x00); /* LSB(wValue) */
#ifdef NKRO_ENABLE
keymap_config.nkro = !!keyboard_protocol;
if (!keymap_config.nkro && keyboard_idle) {
if (!keyboard_protocol && keyboard_idle) {
#else /* NKRO_ENABLE */
if (keyboard_idle) {
#endif /* NKRO_ENABLE */
Expand Down

0 comments on commit 0d7edbb

Please sign in to comment.