Skip to content

Commit

Permalink
Fixed bug where brightness isn't low when watch turning on from sleep.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberneel committed Dec 13, 2024
1 parent 14d173f commit 152f028
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/displayapp/DisplayApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,10 @@ void DisplayApp::Register(Pinetime::Controllers::NavigationService* NavigationSe
}

void DisplayApp::ApplyBrightness() {
if (infiniSleepController.IsEnabled() || currentApp == Apps::Sleep) {
brightnessController.Set(Controllers::BrightnessController::Levels::Low);
return;
}
auto brightness = settingsController.GetBrightness();
if (brightness != Controllers::BrightnessController::Levels::Low && brightness != Controllers::BrightnessController::Levels::Medium &&
brightness != Controllers::BrightnessController::Levels::High) {
Expand Down

0 comments on commit 152f028

Please sign in to comment.