Browse Source

Fixed NKRO issue caused by HID_SET_PROTOCOL on Chibios platform (#17588)

pull/19265/head
lokher 1 year ago
committed by GitHub
parent
commit
0d7edbbcbe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      tmk_core/protocol/chibios/usb_main.c

+ 1
- 2
tmk_core/protocol/chibios/usb_main.c View File

@ -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 */


Loading…
Cancel
Save