Skip to content

Commit

Permalink
Fix alignment of USB out report buffer 2 -> 4 (#13838)
Browse files Browse the repository at this point in the history
  • Loading branch information
elfmimi authored Aug 1, 2021
1 parent ebed2e9 commit 26b62f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tmk_core/protocol/chibios/usb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ static uint16_t get_hword(uint8_t *p) {
* Other Device Required Optional Optional Optional Optional Optional
*/

static uint8_t set_report_buf[2] __attribute__((aligned(2)));
static uint8_t set_report_buf[2] __attribute__((aligned(4)));
static void set_led_transfer_cb(USBDriver *usbp) {
if (usbp->setup[6] == 2) { /* LSB(wLength) */
uint8_t report_id = set_report_buf[0];
Expand Down

0 comments on commit 26b62f7

Please sign in to comment.