summaryrefslogtreecommitdiffstats
path: root/pjrc
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2011-02-21 15:05:28 +0100
committertmk <nobody@nowhere>2011-02-21 19:09:18 +0100
commitc958b2d19b0ec0dbc02f87dc4c9ccee933a54be5 (patch)
tree8d77a25de9b3d459c3a74c9c9c324e93367682d1 /pjrc
parentfb8d23c60c757d5d9c2270cb0123a53be2049a28 (diff)
downloadqmk_firmware-c958b2d19b0ec0dbc02f87dc4c9ccee933a54be5.tar.gz
qmk_firmware-c958b2d19b0ec0dbc02f87dc4c9ccee933a54be5.tar.xz
fixed adb_usb to comply new API.
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 e29c5c9e9..fc05f7c9e 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];
}