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/credits.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/plugins/credits.c') diff --git a/apps/plugins/credits.c b/apps/plugins/credits.c index 593b54277e..3374a33415 100644 --- a/apps/plugins/credits.c +++ b/apps/plugins/credits.c @@ -303,17 +303,21 @@ enum plugin_status plugin_start(const void* parameter) { (void)parameter; +#ifdef HAVE_BACKLIGHT /* Turn off backlight timeout */ backlight_ignore_timeout(); +#endif rb->show_logo(); /* Show the logo for about 3 secs allowing the user to stop */ if(!rb->action_userabort(3*HZ)) roll_credits(); - + +#ifdef HAVE_BACKLIGHT /* Turn on backlight timeout (revert to settings) */ backlight_use_settings(); +#endif return PLUGIN_OK; } -- cgit v1.2.3