From b7a553b137107e1bdf5267a26d2c0e3d93ac5f5e 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 123cd1e62904..dc334447e845 100644 --- a/drivers/oled/oled_driver.c +++ b/drivers/oled/oled_driver.c @@ -639,15 +639,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) {