1
0
Fork 0

Merge branch 'master' into led

This commit is contained in:
Fred Sundvik 2016-05-15 14:50:34 +03:00
commit 350bc0d22f
1 changed files with 8 additions and 2 deletions

View File

@ -24,6 +24,7 @@ SOFTWARE.
#include "visualizer.h" #include "visualizer.h"
#include "ch.h" #include "ch.h"
#include "config.h"
#include <string.h> #include <string.h>
#ifdef LCD_ENABLE #ifdef LCD_ENABLE
@ -44,7 +45,12 @@ SOFTWARE.
#ifdef USE_SERIAL_LINK #ifdef USE_SERIAL_LINK
#include "serial_link/protocol/transport.h" #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 #endif
@ -445,7 +451,7 @@ void visualizer_init(void) {
// when the main thread is sleeping during the matrix scanning // when the main thread is sleeping during the matrix scanning
chEvtObjectInit(&layer_changed_event); chEvtObjectInit(&layer_changed_event);
(void)chThdCreateStatic(visualizerThreadStack, sizeof(visualizerThreadStack), (void)chThdCreateStatic(visualizerThreadStack, sizeof(visualizerThreadStack),
LOWPRIO, visualizerThread, NULL); VISUALIZER_THREAD_PRIORITY, visualizerThread, NULL);
} }
void update_status(bool changed) { void update_status(bool changed) {