From 97a82ee3eca1be69bd2d08e8fd9db09c0807ae5d Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Wed, 23 Nov 2022 23:00:29 -0500 Subject: plugins HAVE_BACKLIGHT helper remove ifdefs in favor of dummy functions lessen the ifdef hell Change-Id: I52f830284e4599f3fc3a75c27dda27058b8de1a3 --- apps/plugins/maze.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'apps/plugins/maze.c') diff --git a/apps/plugins/maze.c b/apps/plugins/maze.c index 20d5c82495..8c951ebdcc 100644 --- a/apps/plugins/maze.c +++ b/apps/plugins/maze.c @@ -498,10 +498,8 @@ enum plugin_status plugin_start(const void* parameter) struct maze maze; (void)parameter; -#ifdef HAVE_BACKLIGHT /* Turn off backlight timeout */ backlight_ignore_timeout(); -#endif /* Seed the RNG */ rb->srand(*rb->current_tick); @@ -591,8 +589,7 @@ enum plugin_status plugin_start(const void* parameter) #endif } /* Turn on backlight timeout (revert to settings) */ -#ifdef HAVE_BACKLIGHT backlight_use_settings(); -#endif + return ((quit == 1) ? PLUGIN_OK : PLUGIN_USB_CONNECTED); } -- cgit v1.2.3