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/starfield.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'apps/plugins/starfield.c') diff --git a/apps/plugins/starfield.c b/apps/plugins/starfield.c index 24e2e4c085..7fc400d0ee 100644 --- a/apps/plugins/starfield.c +++ b/apps/plugins/starfield.c @@ -324,13 +324,14 @@ enum plugin_status plugin_start(const void* parameter) int ret; (void)parameter; +#ifdef HAVE_BACKLIGHT /* Turn off backlight timeout */ backlight_ignore_timeout(); - +#endif ret = plugin_main(); - +#ifdef HAVE_BACKLIGHT /* Turn on backlight timeout (revert to settings) */ backlight_use_settings(); - +#endif return ret; } -- cgit v1.2.3