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/chessclock.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'apps/plugins/chessclock.c') diff --git a/apps/plugins/chessclock.c b/apps/plugins/chessclock.c index fea966213d..649ab164d0 100644 --- a/apps/plugins/chessclock.c +++ b/apps/plugins/chessclock.c @@ -21,8 +21,6 @@ #include "plugin.h" #include "lib/playback_control.h" - - /* variable button definitions */ #if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \ (CONFIG_KEYPAD == IRIVER_H300_PAD) @@ -636,15 +634,19 @@ static int run_timer(int nr) rb->lcd_puts(0, FIRST_LINE+1, (unsigned char *)"ROUND UP!"); else rb->lcd_puts(0, FIRST_LINE+1, (unsigned char *)"TIME OUT!"); +#ifdef HAVE_BACKLIGHT rb->backlight_on(); +#endif ticks = max_ticks; } else { now=*rb->current_tick; if (!chesspause) { ticks+=now-last_tick; if ((max_ticks-ticks)/HZ == 10) { - /* Backlight on if 10 seconds remain */ +#ifdef HAVE_BACKLIGHT + /* Backlight on if 10 seconds remain */ rb->backlight_on(); +#endif } } last_tick=now; -- cgit v1.2.3