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
This commit is contained in:
William Wilgus 2025-05-07 22:10:17 -04:00 committed by William Wilgus
parent 077f44ca41
commit 92b786a0fd

View file

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