Browse Source

use keyboard report size ref

Co-authored-by: Sergey Vlasov <sigprof@gmail.com>
pull/14814/head
Jack Humbert 2 years ago
committed by GitHub
parent
commit
56ec2854a8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tmk_core/protocol/chibios/usb_main.c

+ 1
- 1
tmk_core/protocol/chibios/usb_main.c View File

@ -571,7 +571,7 @@ static bool usb_request_hook_cb(USBDriver *usbp) {
switch (usbp->setup[4]) { /* LSB(wIndex) (check MSB==0?) */
#ifndef KEYBOARD_SHARED_EP
case KEYBOARD_INTERFACE:
usbSetupTransfer(usbp, (uint8_t *)&keyboard_report_sent, sizeof(keyboard_report_sent), NULL);
usbSetupTransfer(usbp, (uint8_t *)&keyboard_report_sent, KEYBOARD_REPORT_SIZE, NULL);
return TRUE;
break;
#endif


Loading…
Cancel
Save