1
0

Fix report size of boot protocol.

This commit is contained in:
Jun Wako 2015-10-17 01:59:55 +09:00
parent 054c86bfe8
commit 1c5c9d94c8

View File

@ -1130,7 +1130,7 @@ void send_keyboard(report_keyboard_t *report) {
} else
#endif /* NKRO_ENABLE */
{ /* boot protocol */
usbPrepareTransmit(&USB_DRIVER, KBD_ENDPOINT, (uint8_t *)report, sizeof(report_keyboard_t));
usbPrepareTransmit(&USB_DRIVER, KBD_ENDPOINT, (uint8_t *)report, KBD_EPSIZE);
osalSysLock();
usbStartTransmitI(&USB_DRIVER, KBD_ENDPOINT);
osalSysUnlock();