Refactor backlight control: Ensure backlight activation is performed correctly during touch events
This commit is contained in:
@@ -126,7 +126,8 @@ touchscreen:
|
||||
- lambda: |-
|
||||
id(last_interaction_ms) = millis();
|
||||
if (!id(backlight_is_on)) {
|
||||
id(backlight).turn_on();
|
||||
auto call = id(backlight).turn_on();
|
||||
call.perform();
|
||||
id(backlight_is_on) = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user