summaryrefslogtreecommitdiffstats
path: root/tmk_core/protocol/vusb
diff options
context:
space:
mode:
authorStefan Kerkmann <karlk90@pm.me>2021-06-07 07:16:55 +0200
committerGitHub <noreply@github.com>2021-06-06 22:16:55 -0700
commit49fd3c0760e06b7eab3647098530f1a9bdfc5054 (patch)
treefe39ef15dacb63d32f2a881af7fac364f02b32db /tmk_core/protocol/vusb
parent415dd21206922fc69929d8ef5d7ab7f13e9c2fbc (diff)
[Core] ChibiOS fix O3 and LTO breakage of extra keys and joystick (#12819)
Diffstat (limited to 'tmk_core/protocol/vusb')
-rw-r--r--tmk_core/protocol/vusb/vusb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tmk_core/protocol/vusb/vusb.c b/tmk_core/protocol/vusb/vusb.c
index 9362fbde78..876a313786 100644
--- a/tmk_core/protocol/vusb/vusb.c
+++ b/tmk_core/protocol/vusb/vusb.c
@@ -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));
}