1
0
Fork 0

fixed adb_usb to comply new API.

This commit is contained in:
tmk 2011-02-21 23:05:28 +09:00
parent fb8d23c60c
commit c958b2d19b
8 changed files with 76 additions and 103 deletions

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];
}