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/oscilloscope.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/oscilloscope.c')
-rw-r--r-- | apps/plugins/oscilloscope.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/plugins/oscilloscope.c b/apps/plugins/oscilloscope.c index ae84e14f7f..ef9e6b8a98 100644 --- a/apps/plugins/oscilloscope.c +++ b/apps/plugins/oscilloscope.c | |||
@@ -1939,10 +1939,9 @@ static void osc_cleanup(void) | |||
1939 | rb->lcd_set_foreground(LCD_DEFAULT_FG); | 1939 | rb->lcd_set_foreground(LCD_DEFAULT_FG); |
1940 | rb->lcd_set_background(LCD_DEFAULT_BG); | 1940 | rb->lcd_set_background(LCD_DEFAULT_BG); |
1941 | #endif | 1941 | #endif |
1942 | #ifdef HAVE_BACKLIGHT | 1942 | |
1943 | /* Turn on backlight timeout (revert to settings) */ | 1943 | /* Turn on backlight timeout (revert to settings) */ |
1944 | backlight_use_settings(); | 1944 | backlight_use_settings(); |
1945 | #endif | ||
1946 | 1945 | ||
1947 | /* save settings if changed */ | 1946 | /* save settings if changed */ |
1948 | if (rb->memcmp(&osc, &osc_disk, sizeof(osc))) | 1947 | if (rb->memcmp(&osc, &osc_disk, sizeof(osc))) |
@@ -1975,10 +1974,9 @@ static void osc_setup(void) | |||
1975 | mixer_sampr = rb->mixer_get_frequency(); | 1974 | mixer_sampr = rb->mixer_get_frequency(); |
1976 | #endif | 1975 | #endif |
1977 | 1976 | ||
1978 | #ifdef HAVE_BACKLIGHT | ||
1979 | /* Turn off backlight timeout */ | 1977 | /* Turn off backlight timeout */ |
1980 | backlight_ignore_timeout(); | 1978 | backlight_ignore_timeout(); |
1981 | #endif | 1979 | |
1982 | graphmode_setup(); | 1980 | graphmode_setup(); |
1983 | } | 1981 | } |
1984 | 1982 | ||