Skip to content

Commit

Permalink
aod: run LVGL task handler until all work finished
Browse files Browse the repository at this point in the history
  • Loading branch information
mark9064 committed Jun 19, 2024
1 parent c1accf4 commit 302f2c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/displayapp/DisplayApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ void DisplayApp::Refresh() {
// If not true, then wait that amount of time
queueTimeout = CalculateSleepTime();
if (queueTimeout == 0) {
lv_task_handler();
// Keep running the task handler if it still has things to draw
while (!lv_task_handler()) {
};
// Drop frames that we've missed if the loop took way longer than expected to execute
while (queueTimeout == 0) {
alwaysOnTickCount += 1;
Expand Down

0 comments on commit 302f2c6

Please sign in to comment.