From c958b2d19b0ec0dbc02f87dc4c9ccee933a54be5 Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 21 Feb 2011 23:05:28 +0900 Subject: fixed adb_usb to comply new API. --- pjrc/usb_keyboard.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pjrc') 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]; } -- cgit v1.2.3