diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 19:20:15 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 19:20:15 -0400 |
commit | 9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3 (patch) | |
tree | 46b4a9f4650d288bcbe67e92a9138b45c06105fa /apps/plugins/rockboy/menu.c | |
parent | 2127906384d618e032692becba10aeda1b3e1974 (diff) | |
download | rockbox-9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3.tar.gz rockbox-9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3.zip |
plugins: More HAVE_BACKLIGHT cleanup
Change-Id: I70cf700f5bc3d4375c025efa62ef40fd2bd70293
Diffstat (limited to 'apps/plugins/rockboy/menu.c')
-rw-r--r-- | apps/plugins/rockboy/menu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/rockboy/menu.c b/apps/plugins/rockboy/menu.c index caa8d499cb..6fafdc11a6 100644 --- a/apps/plugins/rockboy/menu.c +++ b/apps/plugins/rockboy/menu.c | |||
@@ -83,8 +83,9 @@ int do_user_menu(void) { | |||
83 | rb->lcd_set_mode(LCD_MODE_RGB565); | 83 | rb->lcd_set_mode(LCD_MODE_RGB565); |
84 | #endif | 84 | #endif |
85 | 85 | ||
86 | #ifdef HAVE_BACKLIGHT | ||
86 | backlight_use_settings(); | 87 | backlight_use_settings(); |
87 | 88 | #endif | |
88 | /* Clean out the button Queue */ | 89 | /* Clean out the button Queue */ |
89 | while (rb->button_get(false) != BUTTON_NONE) | 90 | while (rb->button_get(false) != BUTTON_NONE) |
90 | rb->yield(); | 91 | rb->yield(); |
@@ -138,9 +139,10 @@ int do_user_menu(void) { | |||
138 | rb->lcd_set_mode(LCD_MODE_PAL256); | 139 | rb->lcd_set_mode(LCD_MODE_PAL256); |
139 | #endif | 140 | #endif |
140 | 141 | ||
142 | #ifdef HAVE_BACKLIGHT | ||
141 | /* ignore backlight time out */ | 143 | /* ignore backlight time out */ |
142 | backlight_ignore_timeout(); | 144 | backlight_ignore_timeout(); |
143 | 145 | #endif | |
144 | return ret; | 146 | return ret; |
145 | } | 147 | } |
146 | 148 | ||