[Core] ChibiOS fix O3 and LTO breakage of extra keys and joystick (#12819)
This commit is contained in:
@@ -272,7 +272,8 @@ static void send_extra(uint8_t report_id, uint16_t data) {
|
||||
last_id = report_id;
|
||||
last_data = data;
|
||||
|
||||
report_extra_t report = {.report_id = report_id, .usage = data};
|
||||
static report_extra_t report;
|
||||
report = (report_extra_t){.report_id = report_id, .usage = data};
|
||||
if (usbInterruptIsReadyShared()) {
|
||||
usbSetInterruptShared((void *)&report, sizeof(report_extra_t));
|
||||
}
|
||||
|
Reference in New Issue
Block a user