diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2022-09-30 22:24:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-30 16:24:43 -0400 |
commit | 8bd73d44555ecb50d0da9bb0e1e48c07b9764e35 (patch) | |
tree | e16fe6d5ad251089d0cf28435d47a35cf864bfb0 /keyboards/sofle/keymaps/flare576 | |
parent | ff1aa6be9ad7a35bd422b294ed3ef4aca92db95a (diff) |
Fix keyboard pet OLED timeout logic (#17189)
The animation itself turns the screen on, preventing the normal timeout
from ever triggering.
Diffstat (limited to 'keyboards/sofle/keymaps/flare576')
-rw-r--r-- | keyboards/sofle/keymaps/flare576/graphics.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/keyboards/sofle/keymaps/flare576/graphics.c b/keyboards/sofle/keymaps/flare576/graphics.c index 918334a508..8cade61668 100644 --- a/keyboards/sofle/keymaps/flare576/graphics.c +++ b/keyboards/sofle/keymaps/flare576/graphics.c @@ -156,16 +156,16 @@ static void render_luna(int LUNA_X, int LUNA_Y) { current_frame = (current_frame + 1) % 2; if(isSneaking) { - oled_write_raw_P(sneak[abs(1 - current_frame)], ANIM_SIZE); + oled_write_raw_P(sneak[current_frame], ANIM_SIZE); } else if(current_wpm <= MIN_WALK_SPEED) { - oled_write_raw_P(sit[abs(1 - current_frame)], ANIM_SIZE); + oled_write_raw_P(sit[current_frame], ANIM_SIZE); } else if(current_wpm <= MIN_RUN_SPEED) { - oled_write_raw_P(walk[abs(1 - current_frame)], ANIM_SIZE); + oled_write_raw_P(walk[current_frame], ANIM_SIZE); } else { - oled_write_raw_P(run[abs(1 - current_frame)], ANIM_SIZE); + oled_write_raw_P(run[current_frame], ANIM_SIZE); } } |