mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-18 01:46:09 +00:00
Fix alignment of USB out report buffer 2 -> 4 (#13838)
This commit is contained in:
parent
ebed2e9a81
commit
26b62f7a6c
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue