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/oscilloscope.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/oscilloscope.c')
-rw-r--r-- | apps/plugins/oscilloscope.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/oscilloscope.c b/apps/plugins/oscilloscope.c index 2af70204a1..4fd1883f82 100644 --- a/apps/plugins/oscilloscope.c +++ b/apps/plugins/oscilloscope.c | |||
@@ -1929,9 +1929,10 @@ static void osc_cleanup(void) | |||
1929 | rb->lcd_set_foreground(LCD_DEFAULT_FG); | 1929 | rb->lcd_set_foreground(LCD_DEFAULT_FG); |
1930 | rb->lcd_set_background(LCD_DEFAULT_BG); | 1930 | rb->lcd_set_background(LCD_DEFAULT_BG); |
1931 | #endif | 1931 | #endif |
1932 | #ifdef HAVE_BACKLIGHT | ||
1932 | /* Turn on backlight timeout (revert to settings) */ | 1933 | /* Turn on backlight timeout (revert to settings) */ |
1933 | backlight_use_settings(); | 1934 | backlight_use_settings(); |
1934 | 1935 | #endif | |
1935 | 1936 | ||
1936 | /* save settings if changed */ | 1937 | /* save settings if changed */ |
1937 | if (rb->memcmp(&osc, &osc_disk, sizeof(osc))) | 1938 | if (rb->memcmp(&osc, &osc_disk, sizeof(osc))) |
@@ -1964,8 +1965,10 @@ static void osc_setup(void) | |||
1964 | mixer_sampr = rb->mixer_get_frequency(); | 1965 | mixer_sampr = rb->mixer_get_frequency(); |
1965 | #endif | 1966 | #endif |
1966 | 1967 | ||
1968 | #ifdef HAVE_BACKLIGHT | ||
1967 | /* Turn off backlight timeout */ | 1969 | /* Turn off backlight timeout */ |
1968 | backlight_ignore_timeout(); | 1970 | backlight_ignore_timeout(); |
1971 | #endif | ||
1969 | graphmode_setup(); | 1972 | graphmode_setup(); |
1970 | } | 1973 | } |
1971 | 1974 | ||