summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pong.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pong.c')
-rw-r--r--apps/plugins/pong.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/pong.c b/apps/plugins/pong.c
index fcc4c5a3b9..a000a88fe7 100644
--- a/apps/plugins/pong.c
+++ b/apps/plugins/pong.c
@@ -747,8 +747,10 @@ enum plugin_status plugin_start(const void* parameter)
this to avoid the compiler warning about it */
(void)parameter;
+#ifdef HAVE_BACKLIGHT
/* Turn off backlight timeout */
backlight_ignore_timeout();
+#endif
/* Clear screen */
rb->lcd_clear_display();
@@ -787,8 +789,9 @@ enum plugin_status plugin_start(const void* parameter)
rb->lcd_clear_display();
}
}
-
+#ifdef HAVE_BACKLIGHT
/* Turn on backlight timeout (revert to settings) */
backlight_use_settings();
+#endif
return (game == 0) ? PLUGIN_OK : PLUGIN_USB_CONNECTED;
}