diff options
Diffstat (limited to 'visualizer.c')
| -rw-r--r-- | visualizer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/visualizer.c b/visualizer.c index 2ec6e34f5..81ec8298f 100644 --- a/visualizer.c +++ b/visualizer.c | |||
| @@ -127,6 +127,7 @@ void stop_all_keyframe_animations(void) { | |||
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | static bool update_keyframe_animation(keyframe_animation_t* animation, visualizer_state_t* state, systime_t delta, systime_t* sleep_time) { | 129 | static bool update_keyframe_animation(keyframe_animation_t* animation, visualizer_state_t* state, systime_t delta, systime_t* sleep_time) { |
| 130 | // TODO: Clean up this messy code | ||
| 130 | dprintf("Animation frame%d, left %d, delta %d\n", animation->current_frame, | 131 | dprintf("Animation frame%d, left %d, delta %d\n", animation->current_frame, |
| 131 | animation->time_left_in_frame, delta); | 132 | animation->time_left_in_frame, delta); |
| 132 | if (animation->current_frame == animation->num_frames) { | 133 | if (animation->current_frame == animation->num_frames) { |
| @@ -394,6 +395,9 @@ static THD_FUNCTION(visualizerThread, arg) { | |||
| 394 | update_keyframe_animation(animations[i], &state, delta, &sleep_time); | 395 | update_keyframe_animation(animations[i], &state, delta, &sleep_time); |
| 395 | } | 396 | } |
| 396 | } | 397 | } |
| 398 | #ifdef LED_ENABLE | ||
| 399 | gdispGFlush(LED_DISPLAY); | ||
| 400 | #endif | ||
| 397 | // The animation can enable the visualizer | 401 | // The animation can enable the visualizer |
| 398 | // And we might need to update the state when that happens | 402 | // And we might need to update the state when that happens |
| 399 | // so don't sleep | 403 | // so don't sleep |
