Skip to content

Commit

Permalink
Made sure to wait for sleep app to load before doing things on wake
Browse files Browse the repository at this point in the history
I think this fixed some things
  • Loading branch information
cyberneel committed Dec 7, 2024
1 parent 073599e commit fe9f176
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/displayapp/DisplayApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,9 @@ void DisplayApp::Refresh() {
if (infiniSleepController.IsEnabled()) {
if (currentApp != Apps::Sleep) {
LoadNewScreen(Apps::Sleep, DisplayApp::FullRefreshDirections::Up);
// Wait for the sleep app to load before moving on.
while (!lv_task_handler()) {
};
}
}
}
Expand Down

0 comments on commit fe9f176

Please sign in to comment.