summaryrefslogtreecommitdiff
path: root/usb_keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'usb_keyboard.c')
-rw-r--r--usb_keyboard.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usb_keyboard.c b/usb_keyboard.c
index 7055a653f..3b071e336 100644
--- a/usb_keyboard.c
+++ b/usb_keyboard.c
@@ -211,7 +211,8 @@ static inline int8_t _send_report(usb_keyboard_report_t *report, uint8_t endpoin
UENUM = endpoint;
}
UEDATX = report->mods;
- UEDATX = 0;
+ if (!usb_keyboard_nkro)
+ UEDATX = 0;
for (uint8_t i = keys_start; i < keys_end; i++) {
UEDATX = report->keys[i];
}