diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 19:20:15 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 19:20:15 -0400 |
commit | 9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3 (patch) | |
tree | 46b4a9f4650d288bcbe67e92a9138b45c06105fa /apps/plugins/chessclock.c | |
parent | 2127906384d618e032692becba10aeda1b3e1974 (diff) | |
download | rockbox-9be5bc4cf0.tar.gz rockbox-9be5bc4cf0.zip |
plugins: More HAVE_BACKLIGHT cleanup
Change-Id: I70cf700f5bc3d4375c025efa62ef40fd2bd70293
Diffstat (limited to 'apps/plugins/chessclock.c')
-rw-r--r-- | apps/plugins/chessclock.c | 8 |
1 files changed, 5 insertions, 3 deletions
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; |