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/starfield.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/starfield.c')
-rw-r--r-- | apps/plugins/starfield.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/plugins/starfield.c b/apps/plugins/starfield.c index 24e2e4c085..7fc400d0ee 100644 --- a/apps/plugins/starfield.c +++ b/apps/plugins/starfield.c | |||
@@ -324,13 +324,14 @@ enum plugin_status plugin_start(const void* parameter) | |||
324 | int ret; | 324 | int ret; |
325 | 325 | ||
326 | (void)parameter; | 326 | (void)parameter; |
327 | #ifdef HAVE_BACKLIGHT | ||
327 | /* Turn off backlight timeout */ | 328 | /* Turn off backlight timeout */ |
328 | backlight_ignore_timeout(); | 329 | backlight_ignore_timeout(); |
329 | 330 | #endif | |
330 | ret = plugin_main(); | 331 | ret = plugin_main(); |
331 | 332 | #ifdef HAVE_BACKLIGHT | |
332 | /* Turn on backlight timeout (revert to settings) */ | 333 | /* Turn on backlight timeout (revert to settings) */ |
333 | backlight_use_settings(); | 334 | backlight_use_settings(); |
334 | 335 | #endif | |
335 | return ret; | 336 | return ret; |
336 | } | 337 | } |