summaryrefslogtreecommitdiffstats
path: root/apps/plugins/chessclock.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/chessclock.c')
-rw-r--r--apps/plugins/chessclock.c8
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;