mirror of
https://github.com/pelgraine/Meck.git
synced 2026-08-06 08:42:48 +02:00
Max backlight bugfix - light was occasionally still remaining on when the autolockscreen timer activated. Now turning off as it should
This commit is contained in:
@@ -2656,6 +2656,10 @@ void UITask::lockScreen() {
|
||||
}
|
||||
#if defined(LilyGo_T5S3_EPaper_Pro)
|
||||
board.setBacklight(false); // Save power (T5S3 backlight)
|
||||
#elif defined(LilyGo_TDeck_Pro_Max)
|
||||
// MAX: IO41 frontlight stays lit otherwise, burning power behind the
|
||||
// lock screen. Plain Pro V1.1 has no working frontlight to switch off.
|
||||
if (board.isBacklightOn()) board.backlightOff();
|
||||
#endif
|
||||
_next_refresh = 0; // Draw lock screen immediately
|
||||
_auto_off = millis() + 60000; // 60s before display off while locked
|
||||
|
||||
Reference in New Issue
Block a user