From e7e0609f8f39e4deef3c0a5b0abb423f93c5a01c Mon Sep 17 00:00:00 2001 From: Marius Alwan Meyer <22202402+sporqist@users.noreply.github.com> Date: Sun, 4 Jun 2023 21:22:19 +0200 Subject: [PATCH] remove the animation timer --- keyboards/splitkb/aurora/corne/keymaps/sporq/oled.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/keyboards/splitkb/aurora/corne/keymaps/sporq/oled.c b/keyboards/splitkb/aurora/corne/keymaps/sporq/oled.c index eac99ce7b2..5416a4b611 100644 --- a/keyboards/splitkb/aurora/corne/keymaps/sporq/oled.c +++ b/keyboards/splitkb/aurora/corne/keymaps/sporq/oled.c @@ -467,9 +467,6 @@ static void render_layer_state(void) { // End of aurora corne things -// point to render_left() or render_right() after olet_int_user() ran -void (*render)(void); - void render_left(void) { // Renders the current keyboard state (layers and mods) render_logo(); @@ -485,7 +482,8 @@ void render_right(void) { render_space_animation(); } -static uint16_t animation_timer; +// point to render_left() or render_right() after olet_int_user() ran +void (*render)(void); oled_rotation_t oled_init_user(oled_rotation_t rotation) { // define what's rendered on each half @@ -496,15 +494,10 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { render = render_right; rotation = OLED_ROTATION_0; } - animation_timer = timer_read(); return rotation; } bool oled_task_user(void) { - if (timer_elapsed(animation_timer) < FRAME_TIMEOUT) { - return false; - } (*render)(); // call render_left() or render_right() - animation_timer = timer_read(); return false; }