diff options
| -rw-r--r-- | visualizer.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/visualizer.c b/visualizer.c index 0684a26d8..579837edc 100644 --- a/visualizer.c +++ b/visualizer.c | |||
| @@ -24,6 +24,7 @@ SOFTWARE. | |||
| 24 | 24 | ||
| 25 | #include "visualizer.h" | 25 | #include "visualizer.h" |
| 26 | #include "ch.h" | 26 | #include "ch.h" |
| 27 | #include "config.h" | ||
| 27 | #include <string.h> | 28 | #include <string.h> |
| 28 | 29 | ||
| 29 | #ifdef LCD_ENABLE | 30 | #ifdef LCD_ENABLE |
| @@ -44,7 +45,12 @@ SOFTWARE. | |||
| 44 | 45 | ||
| 45 | #ifdef USE_SERIAL_LINK | 46 | #ifdef USE_SERIAL_LINK |
| 46 | #include "serial_link/protocol/transport.h" | 47 | #include "serial_link/protocol/transport.h" |
| 47 | #include "serial_link/system/driver.h" | 48 | #include "serial_link/system/serial_link.h" |
| 49 | #endif | ||
| 50 | |||
| 51 | // Define this in config.h | ||
| 52 | #ifndef VISUALIZER_THREAD_PRIORITY | ||
| 53 | #define "Visualizer thread priority not defined" | ||
| 48 | #endif | 54 | #endif |
| 49 | 55 | ||
| 50 | 56 | ||
| @@ -445,7 +451,7 @@ void visualizer_init(void) { | |||
| 445 | // when the main thread is sleeping during the matrix scanning | 451 | // when the main thread is sleeping during the matrix scanning |
| 446 | chEvtObjectInit(&layer_changed_event); | 452 | chEvtObjectInit(&layer_changed_event); |
| 447 | (void)chThdCreateStatic(visualizerThreadStack, sizeof(visualizerThreadStack), | 453 | (void)chThdCreateStatic(visualizerThreadStack, sizeof(visualizerThreadStack), |
| 448 | LOWPRIO, visualizerThread, NULL); | 454 | VISUALIZER_THREAD_PRIORITY, visualizerThread, NULL); |
| 449 | } | 455 | } |
| 450 | 456 | ||
| 451 | void update_status(bool changed) { | 457 | void update_status(bool changed) { |
