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 noroadsleft committed Oct 30, 2020
1 parent 3ede17e commit 69d8bbf
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 @@ -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) {
Expand Down

0 comments on commit 69d8bbf

Please sign in to comment.