From: Jun Wako Date: Fri, 16 Oct 2015 16:59:55 +0000 (+0900) Subject: Fix report size of boot protocol. X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=1c5c9d94c809dba7a487f07814de4701565f9092;p=max%2Ftmk_keyboard.git Fix report size of boot protocol. --- diff --git a/tmk_core/protocol/chibios/usb_main.c b/tmk_core/protocol/chibios/usb_main.c index 382966b9..619b798b 100644 --- a/tmk_core/protocol/chibios/usb_main.c +++ b/tmk_core/protocol/chibios/usb_main.c @@ -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();