summaryrefslogtreecommitdiffstats
path: root/apps/plugins/fft
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-24 18:14:32 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-24 18:17:19 -0400
commita3398a21435045fb6af1af14cc5638fd0cb52119 (patch)
tree701d1f73cc89742ea4ae21d11a60f2f029284099 /apps/plugins/fft
parent5dbb7576700fad81d6ab722b96620fdbbf462be4 (diff)
downloadrockbox-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.c4
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)
#ifndef HAVE_LCD_COLOR
grey_release();
#endif
+#ifdef HAVE_BACKLIGHT
backlight_use_settings();
+#endif
/* save settings if changed */
if (rb->memcmp(&fft, &fft_disk, sizeof(fft)))
@@ -1583,7 +1585,9 @@ static bool fft_setup(void)
mylcd_clear_display();
myosd_lcd_update();
#endif
+#ifdef HAVE_BACKLIGHT
backlight_ignore_timeout();
+#endif
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->trigger_cpu_boost();