aboutsummaryrefslogtreecommitdiff
path: root/visualizer.c
diff options
context:
space:
mode:
Diffstat (limited to 'visualizer.c')
-rw-r--r--visualizer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/visualizer.c b/visualizer.c
index 867a1d334..ed5c9fa2c 100644
--- a/visualizer.c
+++ b/visualizer.c
@@ -77,6 +77,9 @@ static remote_object_t* remote_objects[] = {
77 77
78#endif 78#endif
79 79
80GDisplay* LCDDisplay;
81GDisplay* LEDDisplay;
82
80 83
81void start_keyframe_animation(keyframe_animation_t* animation) { 84void start_keyframe_animation(keyframe_animation_t* animation) {
82 animation->current_frame = -1; 85 animation->current_frame = -1;
@@ -405,6 +408,11 @@ void visualizer_init(void) {
405#ifdef USE_SERIAL_LINK 408#ifdef USE_SERIAL_LINK
406 add_remote_objects(remote_objects, sizeof(remote_objects) / sizeof(remote_object_t*) ); 409 add_remote_objects(remote_objects, sizeof(remote_objects) / sizeof(remote_object_t*) );
407#endif 410#endif
411 // TODO: Make sure these works when either of these are disabled
412 LCDDisplay = gdispGetDisplay(0);
413 LEDDisplay = gdispGetDisplay(1);
414
415
408 // We are using a low priority thread, the idea is to have it run only 416 // We are using a low priority thread, the idea is to have it run only
409 // when the main thread is sleeping during the matrix scanning 417 // when the main thread is sleeping during the matrix scanning
410 chEvtObjectInit(&layer_changed_event); 418 chEvtObjectInit(&layer_changed_event);