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/fft | |
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/fft')
-rw-r--r-- | apps/plugins/fft/fft.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/fft/fft.c b/apps/plugins/fft/fft.c index 1349b07012..9edb02a15e 100644 --- a/apps/plugins/fft/fft.c +++ b/apps/plugins/fft/fft.c | |||
@@ -1532,7 +1532,9 @@ static void fft_cleanup(void) | |||
1532 | #ifndef HAVE_LCD_COLOR | 1532 | #ifndef HAVE_LCD_COLOR |
1533 | grey_release(); | 1533 | grey_release(); |
1534 | #endif | 1534 | #endif |
1535 | #ifdef HAVE_BACKLIGHT | ||
1535 | backlight_use_settings(); | 1536 | backlight_use_settings(); |
1537 | #endif | ||
1536 | 1538 | ||
1537 | /* save settings if changed */ | 1539 | /* save settings if changed */ |
1538 | if (rb->memcmp(&fft, &fft_disk, sizeof(fft))) | 1540 | if (rb->memcmp(&fft, &fft_disk, sizeof(fft))) |
@@ -1583,7 +1585,9 @@ static bool fft_setup(void) | |||
1583 | mylcd_clear_display(); | 1585 | mylcd_clear_display(); |
1584 | myosd_lcd_update(); | 1586 | myosd_lcd_update(); |
1585 | #endif | 1587 | #endif |
1588 | #ifdef HAVE_BACKLIGHT | ||
1586 | backlight_ignore_timeout(); | 1589 | backlight_ignore_timeout(); |
1590 | #endif | ||
1587 | 1591 | ||
1588 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 1592 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
1589 | rb->trigger_cpu_boost(); | 1593 | rb->trigger_cpu_boost(); |