aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-07-07 14:01:20 +0300
committerFred Sundvik <fsundvik@gmail.com>2016-07-07 14:01:20 +0300
commit7229751ba9d402b2a6c9dc1b7b29385b5162fe41 (patch)
treee3bfc81e5853b6bc1729058cdb114d72bf372ce0 /tmk_core
parent07d0d5cbe48d7afaf0bc8c9916d40179ec51cb42 (diff)
downloadfirmware-7229751ba9d402b2a6c9dc1b7b29385b5162fe41.tar.gz
firmware-7229751ba9d402b2a6c9dc1b7b29385b5162fe41.tar.bz2
firmware-7229751ba9d402b2a6c9dc1b7b29385b5162fe41.zip
Fix visualizer crash at startup
Visualizer and serial link initialized in the wrong order. The LED_ENABLED define wasn't set properly uGfx is always initialized
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/protocol/chibios/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tmk_core/protocol/chibios/main.c b/tmk_core/protocol/chibios/main.c
index 6bf9c1668..36fd45d45 100644
--- a/tmk_core/protocol/chibios/main.c
+++ b/tmk_core/protocol/chibios/main.c
@@ -104,13 +104,14 @@ int main(void) {
/* init printf */
init_printf(NULL,sendchar_pf);
+#ifdef SERIAL_LINK_ENABLE
+ init_serial_link();
+#endif
+
#ifdef VISUALIZER_ENABLE
visualizer_init();
#endif
-#ifdef SERIAL_LINK_ENABLE
- init_serial_link();
-#endif
host_driver_t* driver = NULL;