mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
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:
parent
077f44ca41
commit
92b786a0fd
1 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue