Skip to content

Commit 3e8accd

Browse files
mark9064JF002
authored andcommitted
aod: run LVGL task handler until all work finished
1 parent 2bb611d commit 3e8accd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/displayapp/DisplayApp.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,9 @@ void DisplayApp::Refresh() {
242242
// If not true, then wait that amount of time
243243
queueTimeout = CalculateSleepTime();
244244
if (queueTimeout == 0) {
245-
lv_task_handler();
245+
// Keep running the task handler if it still has things to draw
246+
while (!lv_task_handler()) {
247+
};
246248
// Drop frames that we've missed if the loop took way longer than expected to execute
247249
while (queueTimeout == 0) {
248250
alwaysOnTickCount += 1;

0 commit comments

Comments
 (0)