#include "visualizer.h"
#include "ch.h"
+#include "config.h"
#include <string.h>
#ifdef LCD_ENABLE
#include "serial_link/system/driver.h"
#endif
+// Define this in config.h
+#ifndef VISUALIZER_THREAD_PRIORITY
+#define "Visualizer thread priority not defined"
+#endif
+
static visualizer_keyboard_status_t current_status = {
.layer = 0xFFFFFFFF,
// 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) {