From 9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 24 Jul 2020 19:20:15 -0400 Subject: plugins: More HAVE_BACKLIGHT cleanup Change-Id: I70cf700f5bc3d4375c025efa62ef40fd2bd70293 --- apps/plugins/mazezam.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/plugins/mazezam.c') diff --git a/apps/plugins/mazezam.c b/apps/plugins/mazezam.c index 423b09288d..cd7b6e22a8 100644 --- a/apps/plugins/mazezam.c +++ b/apps/plugins/mazezam.c @@ -256,7 +256,9 @@ static void store_lcd_settings(void) ******************************************************************************/ static void restore_lcd_settings(void) { /* Turn on backlight timeout (revert to settings) */ +#ifdef HAVE_BACKLIGHT backlight_use_settings(); +#endif /* Restore the old settings */ #if LCD_DEPTH > 1 @@ -270,9 +272,10 @@ static void restore_lcd_settings(void) { * Adjust the LCD settings to suit MazezaM levels ******************************************************************************/ static void plugin_lcd_settings(void) { +#ifdef HAVE_BACKLIGHT /* Turn off backlight timeout */ backlight_ignore_timeout(); - +#endif /* Set the new settings */ #ifdef HAVE_LCD_COLOR rb->lcd_set_background(MAZEZAM_BG_COLOR); -- cgit v1.2.3