Skip to content

Commit 09e9553

Browse files
committed
Prevent blocking when Infineat watchface is charging
1 parent 993118a commit 09e9553

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/displayapp/DisplayApp.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,11 @@ void DisplayApp::Refresh() {
316316
currentApp == Apps::Settings) {
317317
LoadScreen(Apps::Clock, DisplayApp::FullRefreshDirections::None);
318318
// Wait for the clock app to load before moving on.
319-
while (!lv_task_handler()) {
320-
};
319+
// If Infineat is charging due to the constant charging animation, lv_task_handler will block so we will skip
320+
if (settingsController.GetWatchFace() != Pinetime::Applications::WatchFace::Infineat || !batteryController.IsCharging()) {
321+
while (!lv_task_handler()) {
322+
}
323+
}
321324
}
322325
// Clear any ongoing touch pressed events
323326
// Without this LVGL gets stuck in the pressed state and will keep refreshing the

0 commit comments

Comments
 (0)