summaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authorlokher <lokher@gmail.com>2022-12-08 23:56:36 +0800
committerGitHub <noreply@github.com>2022-12-09 02:56:36 +1100
commit0d7edbbcbe46e2b917ba0c30fbe7fe1d09428def (patch)
tree2ef235fb2b1daff273b2a8368786ec9d463cb240 /tmk_core
parent6866466b072b02653730ac6bdedcf52a214a3538 (diff)
Fixed NKRO issue caused by HID_SET_PROTOCOL on Chibios platform (#17588)
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/protocol/chibios/usb_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tmk_core/protocol/chibios/usb_main.c b/tmk_core/protocol/chibios/usb_main.c
index 62a11faff7..094c14d1b3 100644
--- a/tmk_core/protocol/chibios/usb_main.c
+++ b/tmk_core/protocol/chibios/usb_main.c
@@ -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 */