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/rocklife.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/rocklife.c')
-rw-r--r-- | apps/plugins/rocklife.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/rocklife.c b/apps/plugins/rocklife.c index 1effeb2f00..0be48dcce8 100644 --- a/apps/plugins/rocklife.c +++ b/apps/plugins/rocklife.c | |||
@@ -473,7 +473,9 @@ enum plugin_status plugin_start(const void* parameter) | |||
473 | char *ptemp; | 473 | char *ptemp; |
474 | (void)(parameter); | 474 | (void)(parameter); |
475 | 475 | ||
476 | #ifdef HAVE_BACKLIGHT | ||
476 | backlight_ignore_timeout(); | 477 | backlight_ignore_timeout(); |
478 | #endif | ||
477 | #if LCD_DEPTH > 1 | 479 | #if LCD_DEPTH > 1 |
478 | rb->lcd_set_backdrop(NULL); | 480 | rb->lcd_set_backdrop(NULL); |
479 | #ifdef HAVE_LCD_COLOR | 481 | #ifdef HAVE_LCD_COLOR |
@@ -577,6 +579,8 @@ enum plugin_status plugin_start(const void* parameter) | |||
577 | rb->yield(); | 579 | rb->yield(); |
578 | } | 580 | } |
579 | 581 | ||
582 | #ifdef HAVE_BACKLIGHT | ||
580 | backlight_use_settings(); | 583 | backlight_use_settings(); |
584 | #endif | ||
581 | return usb? PLUGIN_USB_CONNECTED: PLUGIN_OK; | 585 | return usb? PLUGIN_USB_CONNECTED: PLUGIN_OK; |
582 | } | 586 | } |