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/pong.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/plugins/pong.c') 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; } -- cgit v1.2.3