diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2016-05-15 14:50:34 +0300 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2016-05-15 14:50:34 +0300 |
commit | 350bc0d22f76f362ecf8024a9f5af799e890a223 (patch) | |
tree | d01fbcb7e54d25d3ca424bc2cd3a16ee7a08ca59 /visualizer.c | |
parent | 25382cb6f21b6136b0f490a618ce8d494ca5cd38 (diff) | |
parent | bde869aa7ec8601459bc63b9636081d21108d1be (diff) |
Merge branch 'master' into led
Diffstat (limited to 'visualizer.c')
-rw-r--r-- | visualizer.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/visualizer.c b/visualizer.c index 0684a26d8f..579837edcd 100644 --- a/visualizer.c +++ b/visualizer.c @@ -24,6 +24,7 @@ SOFTWARE. #include "visualizer.h" #include "ch.h" +#include "config.h" #include <string.h> #ifdef LCD_ENABLE @@ -44,7 +45,12 @@ SOFTWARE. #ifdef USE_SERIAL_LINK #include "serial_link/protocol/transport.h" -#include "serial_link/system/driver.h" +#include "serial_link/system/serial_link.h" +#endif + +// Define this in config.h +#ifndef VISUALIZER_THREAD_PRIORITY +#define "Visualizer thread priority not defined" #endif @@ -445,7 +451,7 @@ void visualizer_init(void) { // when the main thread is sleeping during the matrix scanning chEvtObjectInit(&layer_changed_event); (void)chThdCreateStatic(visualizerThreadStack, sizeof(visualizerThreadStack), - LOWPRIO, visualizerThread, NULL); + VISUALIZER_THREAD_PRIORITY, visualizerThread, NULL); } void update_status(bool changed) { |