Skip to content

Commit

Permalink
Minor change to behavior allowing display updates to continue between…
Browse files Browse the repository at this point in the history
… task ticks (#10750)
  • Loading branch information
XScorpion2 authored and skullydazed committed Oct 28, 2020
1 parent 6626f5d commit b7a553b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/oled/oled_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b7a553b

Please sign in to comment.