summaryrefslogtreecommitdiff
path: root/pjrc
diff options
context:
space:
mode:
Diffstat (limited to 'pjrc')
-rw-r--r--pjrc/usb_keyboard.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pjrc/usb_keyboard.c b/pjrc/usb_keyboard.c
index e29c5c9e91..fc05f7c9e7 100644
--- a/pjrc/usb_keyboard.c
+++ b/pjrc/usb_keyboard.c
@@ -81,8 +81,12 @@ static inline int8_t send_report(report_keyboard_t *report, uint8_t endpoint, ui
UENUM = endpoint;
}
UEDATX = report->mods;
+#ifdef USB_NKRO_ENABLE
if (!keyboard_nkro)
UEDATX = 0;
+#else
+ UEDATX = 0;
+#endif
for (uint8_t i = keys_start; i < keys_end; i++) {
UEDATX = report->keys[i];
}