From 69d8bbf1f4620bbde6abc552efa748324aec9b91 Mon Sep 17 00:00:00 2001 From: XScorpion2 Date: Sun, 25 Oct 2020 22:09:08 -0500 Subject: [PATCH] Minor change to behavior allowing display updates to continue between task ticks (#10750) --- drivers/oled/oled_driver.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/oled/oled_driver.c b/drivers/oled/oled_driver.c index 67c9b12d13..6e5c3b9a13 100644 --- a/drivers/oled/oled_driver.c +++ b/drivers/oled/oled_driver.c @@ -654,15 +654,15 @@ void oled_task(void) { } #if OLED_UPDATE_INTERVAL > 0 - if (timer_elapsed(oled_update_timeout) < OLED_UPDATE_INTERVAL) { - return; + if (timer_elapsed(oled_update_timeout) >= OLED_UPDATE_INTERVAL) { + oled_update_timeout = timer_read(); + oled_set_cursor(0, 0); + oled_task_user(); } - oled_update_timeout = timer_read(); -#endif - +#else oled_set_cursor(0, 0); - oled_task_user(); +#endif #if OLED_SCROLL_TIMEOUT > 0 if (oled_dirty && oled_scrolling) {