diff options
author | a_p_u_r_o <applause@elfmimi.jp> | 2021-08-02 08:32:26 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-02 00:32:26 +0100 |
commit | 26b62f7a6c4e5dd98e9a1e7b60c7e3a927e00ec2 (patch) | |
tree | 4ab0bafb347d127791c5b1ac48557443fb05a3ac /tmk_core/protocol/chibios | |
parent | ebed2e9a81d324e027ccc455a45e11f39c2ce54c (diff) | |
download | qmk_firmware-26b62f7a6c4e5dd98e9a1e7b60c7e3a927e00ec2.tar.gz qmk_firmware-26b62f7a6c4e5dd98e9a1e7b60c7e3a927e00ec2.zip |
Fix alignment of USB out report buffer 2 -> 4 (#13838)
Diffstat (limited to 'tmk_core/protocol/chibios')
-rw-r--r-- | tmk_core/protocol/chibios/usb_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tmk_core/protocol/chibios/usb_main.c b/tmk_core/protocol/chibios/usb_main.c index 407b8ea75d..3adbb97994 100644 --- a/tmk_core/protocol/chibios/usb_main.c +++ b/tmk_core/protocol/chibios/usb_main.c @@ -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]; |