From e49c1af5709bd24ea9c088c6d1676372bd7cc780 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 24 Jul 2020 19:42:32 -0400 Subject: plugins: HAVE_BACKLIGHT in the test plugins Change-Id: I97d17805ac7d37f10da6a29684102db97448e653 --- apps/plugins/test_grey.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/plugins/test_grey.c') diff --git a/apps/plugins/test_grey.c b/apps/plugins/test_grey.c index c4179df135..121cbad051 100644 --- a/apps/plugins/test_grey.c +++ b/apps/plugins/test_grey.c @@ -123,9 +123,9 @@ enum plugin_status plugin_start(const void* parameter) } for (i = 0; i <= STEPS; i++) input_levels[i] = lcd_levels[i] = (255 * i + (STEPS/2)) / STEPS; - +#ifdef HAVE_BACKLIGHT backlight_ignore_timeout(); - +#endif grey_set_background(0); /* set background to black */ grey_clear_display(); grey_show(true); @@ -221,6 +221,8 @@ enum plugin_status plugin_start(const void* parameter) } grey_release(); +#ifdef HAVE_BACKLIGHT backlight_use_settings(); +#endif return PLUGIN_OK; } -- cgit v1.2.3