aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/DisplayApp.cpp
diff options
context:
space:
mode:
authorJohn Crawford <coffeeboi47@protonmail.com>2023-10-14 10:16:49 -0600
committerJF <JF002@users.noreply.github.com>2024-08-05 20:32:43 +0200
commit5385f7e275a0b3ca83d8a7cae959b02700ef153a (patch)
treecc0289f2324aa00bf8b705ba5f31eab007ab1d69 /src/displayapp/DisplayApp.cpp
parente884b053d32d4a7c3b4464e07edaddfbb334ec27 (diff)
aod: switch to 8 colors when always on
Diffstat (limited to 'src/displayapp/DisplayApp.cpp')
-rw-r--r--src/displayapp/DisplayApp.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/displayapp/DisplayApp.cpp b/src/displayapp/DisplayApp.cpp
index 5e68ef23..1a579cb1 100644
--- a/src/displayapp/DisplayApp.cpp
+++ b/src/displayapp/DisplayApp.cpp
@@ -249,6 +249,7 @@ void DisplayApp::Refresh() {
// Don't actually turn off the display for AlwaysOn mode
if (settingsController.GetAlwaysOnDisplay()) {
brightnessController.Set(Controllers::BrightnessController::Levels::AlwaysOn);
+ lcd.LowPowerOn();
} else {
brightnessController.Set(Controllers::BrightnessController::Levels::Off);
lcd.Sleep();
@@ -257,7 +258,11 @@ void DisplayApp::Refresh() {
state = States::Idle;
break;
case Messages::GoToRunning:
- lcd.Wakeup();
+ if (settingsController.GetAlwaysOnDisplay()) {
+ lcd.LowPowerOff();
+ } else {
+ lcd.Wakeup();
+ }
lv_disp_trig_activity(nullptr);
ApplyBrightness();
state = States::Running;