1
0
Fork 0
forked from len0rd/rockbox

plugins: More HAVE_BACKLIGHT cleanup

Change-Id: I70cf700f5bc3d4375c025efa62ef40fd2bd70293
This commit is contained in:
Solomon Peachy 2020-07-24 19:20:15 -04:00
parent 2127906384
commit 9be5bc4cf0
30 changed files with 149 additions and 44 deletions

View file

@ -83,8 +83,9 @@ int do_user_menu(void) {
rb->lcd_set_mode(LCD_MODE_RGB565);
#endif
#ifdef HAVE_BACKLIGHT
backlight_use_settings();
#endif
/* Clean out the button Queue */
while (rb->button_get(false) != BUTTON_NONE)
rb->yield();
@ -138,9 +139,10 @@ int do_user_menu(void) {
rb->lcd_set_mode(LCD_MODE_PAL256);
#endif
#ifdef HAVE_BACKLIGHT
/* ignore backlight time out */
backlight_ignore_timeout();
#endif
return ret;
}