1
0
Fork 0
forked from len0rd/rockbox

plugins: Fix the builds for targets lacking HAVE_BACKLIGHT

Change-Id: Ifdb1501834b7ea63ca6f731bbd6414305d7e0001
This commit is contained in:
Solomon Peachy 2020-07-24 18:14:32 -04:00
parent 5dbb757670
commit a3398a2143
7 changed files with 40 additions and 10 deletions

View file

@ -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();