diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 18:14:32 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 18:17:19 -0400 |
commit | a3398a21435045fb6af1af14cc5638fd0cb52119 (patch) | |
tree | 701d1f73cc89742ea4ae21d11a60f2f029284099 /apps/plugins/chopper.c | |
parent | 5dbb7576700fad81d6ab722b96620fdbbf462be4 (diff) | |
download | rockbox-a3398a21435045fb6af1af14cc5638fd0cb52119.tar.gz rockbox-a3398a21435045fb6af1af14cc5638fd0cb52119.zip |
plugins: Fix the builds for targets lacking HAVE_BACKLIGHT
Change-Id: Ifdb1501834b7ea63ca6f731bbd6414305d7e0001
Diffstat (limited to 'apps/plugins/chopper.c')
-rw-r--r-- | apps/plugins/chopper.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c index f42801f10f..37fed5dd01 100644 --- a/apps/plugins/chopper.c +++ b/apps/plugins/chopper.c | |||
@@ -1105,8 +1105,10 @@ enum plugin_status plugin_start(const void* parameter) | |||
1105 | rb->lcd_set_foreground(LCD_WHITE); | 1105 | rb->lcd_set_foreground(LCD_WHITE); |
1106 | #endif | 1106 | #endif |
1107 | 1107 | ||
1108 | #ifdef HAVE_BACKLIGHT | ||
1108 | /* Turn off backlight timeout */ | 1109 | /* Turn off backlight timeout */ |
1109 | backlight_ignore_timeout(); | 1110 | backlight_ignore_timeout(); |
1111 | #endif | ||
1110 | 1112 | ||
1111 | rb->srand( *rb->current_tick ); | 1113 | rb->srand( *rb->current_tick ); |
1112 | 1114 | ||
@@ -1118,8 +1120,10 @@ enum plugin_status plugin_start(const void* parameter) | |||
1118 | configfile_save(CFG_FILE, config, 1, 0); | 1120 | configfile_save(CFG_FILE, config, 1, 0); |
1119 | 1121 | ||
1120 | rb->lcd_setfont(FONT_UI); | 1122 | rb->lcd_setfont(FONT_UI); |
1123 | #ifdef HAVE_BACKLIGHT | ||
1121 | /* Turn on backlight timeout (revert to settings) */ | 1124 | /* Turn on backlight timeout (revert to settings) */ |
1122 | backlight_use_settings(); | 1125 | backlight_use_settings(); |
1126 | #endif | ||
1123 | 1127 | ||
1124 | return ret; | 1128 | return ret; |
1125 | } | 1129 | } |