diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-11-23 23:00:29 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-11-23 23:00:29 -0500 |
commit | 97a82ee3eca1be69bd2d08e8fd9db09c0807ae5d (patch) | |
tree | b032a1397fd33240d8fdc7d6e17059723d0ffe55 /apps/plugins/chopper.c | |
parent | 3745c813f924b12232c4f37610aecd23fe5654b8 (diff) | |
download | rockbox-97a82ee3eca1be69bd2d08e8fd9db09c0807ae5d.tar.gz rockbox-97a82ee3eca1be69bd2d08e8fd9db09c0807ae5d.zip |
plugins HAVE_BACKLIGHT helper remove ifdefs in favor of dummy functions
lessen the ifdef hell
Change-Id: I52f830284e4599f3fc3a75c27dda27058b8de1a3
Diffstat (limited to 'apps/plugins/chopper.c')
-rw-r--r-- | apps/plugins/chopper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c index 392b840317..5c87e74e50 100644 --- a/apps/plugins/chopper.c +++ b/apps/plugins/chopper.c | |||
@@ -1083,10 +1083,10 @@ enum plugin_status plugin_start(const void* parameter) | |||
1083 | rb->lcd_set_foreground(LCD_WHITE); | 1083 | rb->lcd_set_foreground(LCD_WHITE); |
1084 | #endif | 1084 | #endif |
1085 | 1085 | ||
1086 | #ifdef HAVE_BACKLIGHT | 1086 | |
1087 | /* Turn off backlight timeout */ | 1087 | /* Turn off backlight timeout */ |
1088 | backlight_ignore_timeout(); | 1088 | backlight_ignore_timeout(); |
1089 | #endif | 1089 | |
1090 | 1090 | ||
1091 | rb->srand( *rb->current_tick ); | 1091 | rb->srand( *rb->current_tick ); |
1092 | 1092 | ||
@@ -1098,10 +1098,10 @@ enum plugin_status plugin_start(const void* parameter) | |||
1098 | configfile_save(CFG_FILE, config, 1, 0); | 1098 | configfile_save(CFG_FILE, config, 1, 0); |
1099 | 1099 | ||
1100 | rb->lcd_setfont(FONT_UI); | 1100 | rb->lcd_setfont(FONT_UI); |
1101 | #ifdef HAVE_BACKLIGHT | 1101 | |
1102 | /* Turn on backlight timeout (revert to settings) */ | 1102 | /* Turn on backlight timeout (revert to settings) */ |
1103 | backlight_use_settings(); | 1103 | backlight_use_settings(); |
1104 | #endif | 1104 | |
1105 | 1105 | ||
1106 | return ret; | 1106 | return ret; |
1107 | } | 1107 | } |