From a3398a21435045fb6af1af14cc5638fd0cb52119 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 24 Jul 2020 18:14:32 -0400 Subject: plugins: Fix the builds for targets lacking HAVE_BACKLIGHT Change-Id: Ifdb1501834b7ea63ca6f731bbd6414305d7e0001 --- apps/plugins/fft/fft.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/plugins/fft/fft.c') 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(); -- cgit v1.2.3