fixed adb_usb to comply new API.

This commit is contained in:
tmk committed 2011-02-22 03:09:18 +09:00
1 parent fb8d23c60c
commit c958b2d19b
8 files changed
+76 -103

No files matched your search

+4
View File
@@ -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];
}