Refactor backlight control: Ensure backlight activation is performed correctly during touch events

This commit is contained in:
Joshua King
2026-02-28 21:41:44 -05:00
parent 71ee0ffc4f
commit bd845f3f8e

View File

@@ -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;
}