File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,11 @@ void DisplayApp::Refresh() {
186186 TickType_t queueTimeout;
187187 switch (state) {
188188 case States::Idle:
189- queueTimeout = portMAX_DELAY;
189+ if (settingsController.GetAlwaysOnDisplay ()) {
190+ queueTimeout = lv_task_handler ();
191+ } else {
192+ queueTimeout = portMAX_DELAY;
193+ }
190194 break ;
191195 case States::Running:
192196 if (!currentScreen->IsRunning ()) {
Original file line number Diff line number Diff line change @@ -320,7 +320,12 @@ void SystemTask::Work() {
320320 // if it's in sleep mode. Avoid bricked device by disabling sleep mode on these versions.
321321 spiNorFlash.Sleep ();
322322 }
323- spi.Sleep ();
323+
324+ // If the spi goes to sleep, AlwaysOn will not update the screen while dim, and the screen colors invert
325+ // upon wakeup
326+ if (!settingsController.GetAlwaysOnDisplay ()) {
327+ spi.Sleep ();
328+ }
324329
325330 // Double Tap needs the touch screen to be in normal mode
326331 if (!settingsController.isWakeUpModeOn (Pinetime::Controllers::Settings::WakeUpMode::DoubleTap)) {
You can’t perform that action at this time.
0 commit comments