From 92b786a0fda5bb4fc3d6b4742cbb98bf66de98a1 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Wed, 7 May 2025 22:10:17 -0400 Subject: [PATCH] Don't turn off backlight while buttons are pressed FS#13391 while scrolling lists or seeking in a song with several second backlight timeouts the screen turns off even though you are currently pressing a button Try #2 moves the logic to button_tick() Change-Id: I32455eb578cc578b4cbd4b4dc16325970cf9dc29 --- firmware/drivers/button.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 8f34b31809..beb2709624 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -342,6 +342,19 @@ static void button_tick(void) skip_release = false; #endif post = false; + /* Need to post back/buttonlight_on() on repeat buttons */ +#ifdef HAVE_BACKLIGHT +#ifdef HAVE_REMOTE_LCD + if (btn & BUTTON_REMOTE) { + remote_backlight_on(); + } + else +#endif + { + backlight_on(); + buttonlight_on(); + } +#endif } } else