summaryrefslogtreecommitdiff
path: root/tmk_core/protocol
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2021-11-03 06:54:16 +1100
committerGitHub <noreply@github.com>2021-11-02 19:54:16 +0000
commit387edab52b1c1ab7585c4c1a11d997a6a90a505c (patch)
tree894e3338972aa28b80675550dba6969eaeec5538 /tmk_core/protocol
parent634e42b2b47d32ae8aa933599e63e3761939e3f5 (diff)
Fixup #15029 (#15031)
Diffstat (limited to 'tmk_core/protocol')
-rw-r--r--tmk_core/protocol/chibios/chibios.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/protocol/chibios/chibios.c b/tmk_core/protocol/chibios/chibios.c
index 5ba21b3f8e..41752b2130 100644
--- a/tmk_core/protocol/chibios/chibios.c
+++ b/tmk_core/protocol/chibios/chibios.c
@@ -140,6 +140,8 @@ void protocol_setup(void) {
// chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
}
+static host_driver_t *driver = NULL;
+
void protocol_pre_init(void) {
/* Init USB */
usb_event_queue_init();
@@ -149,8 +151,6 @@ void protocol_pre_init(void) {
setup_midi();
#endif
- host_driver_t *driver = NULL;
-
/* Wait until USB is active */
while (true) {
#if defined(WAIT_FOR_USB)