]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Fix report size of boot protocol.
authorJun Wako <wakojun@gmail.com>
Fri, 16 Oct 2015 16:59:55 +0000 (01:59 +0900)
committerJun Wako <wakojun@gmail.com>
Fri, 16 Oct 2015 16:59:55 +0000 (01:59 +0900)
tmk_core/protocol/chibios/usb_main.c

index 382966b9a25ab2e7e34fdeef0c99d55fcbd40947..619b798bbd4f6801840ce13f2bd62aae977f5bb4 100644 (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();