fix: only attempt to wake the display if it's off

This commit is contained in:
Cameron Fleming 2025-01-04 22:22:29 +00:00
parent db4c0c7136
commit a267bb3a1d
1 changed files with 4 additions and 0 deletions

View File

@ -151,6 +151,10 @@ func displayTimeoutTick() {
// wakeDisplay sets the display brightness back to config.DisplayMaxBrightness and stores the time the display
// last woke, ready for displayTimeoutTick to put the display back in the dim/off states.
func wakeDisplay() {
if backlightState == 0 {
return
}
if config.DisplayMaxBrightness == 0 {
config.DisplayMaxBrightness = 100
}