Minor change to behavior allowing display updates to continue between task ticks (#10750)

This commit is contained in:
XScorpion2 2020-10-25 22:09:08 -05:00 committed by James Young
parent 3ede17e729
commit 69d8bbf1f4
No known key found for this signature in database
GPG key ID: 8E1085BF6FCFBD74

View file

@ -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();
#endif
oled_set_cursor(0, 0);
oled_task_user();
}
#else
oled_set_cursor(0, 0);
oled_task_user();
#endif
#if OLED_SCROLL_TIMEOUT > 0
if (oled_dirty && oled_scrolling) {