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 | |
| parent | 25382cb6f21b6136b0f490a618ce8d494ca5cd38 (diff) | |
| parent | bde869aa7ec8601459bc63b9636081d21108d1be (diff) | |
| download | qmk_firmware-350bc0d22f76f362ecf8024a9f5af799e890a223.tar.gz qmk_firmware-350bc0d22f76f362ecf8024a9f5af799e890a223.zip | |
Merge branch 'master' into led
| -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) { |
