summaryrefslogtreecommitdiffstats
path: root/apps/plugins/maze.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/maze.c')
-rw-r--r--apps/plugins/maze.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/maze.c b/apps/plugins/maze.c
index bcdb4ff553..20d5c82495 100644
--- a/apps/plugins/maze.c
+++ b/apps/plugins/maze.c
@@ -498,8 +498,10 @@ 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);
@@ -589,6 +591,8 @@ 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);
}