aboutsummaryrefslogtreecommitdiff
path: root/visualizer.c
diff options
context:
space:
mode:
Diffstat (limited to 'visualizer.c')
-rw-r--r--visualizer.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/visualizer.c b/visualizer.c
index 867a1d334..605be3059 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
@@ -409,7 +415,7 @@ void visualizer_init(void) {
409 // when the main thread is sleeping during the matrix scanning 415 // when the main thread is sleeping during the matrix scanning
410 chEvtObjectInit(&layer_changed_event); 416 chEvtObjectInit(&layer_changed_event);
411 (void)chThdCreateStatic(visualizerThreadStack, sizeof(visualizerThreadStack), 417 (void)chThdCreateStatic(visualizerThreadStack, sizeof(visualizerThreadStack),
412 LOWPRIO, visualizerThread, NULL); 418 VISUALIZER_THREAD_PRIORITY, visualizerThread, NULL);
413} 419}
414 420
415void update_status(bool changed) { 421void update_status(bool changed) {