summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/chessclock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/chessclock.c b/apps/plugins/chessclock.c
index 897f05a..b647a0f 100644
--- a/apps/plugins/chessclock.c
+++ b/apps/plugins/chessclock.c
@@ -186,6 +186,7 @@ static int run_timer(int nr)
while (!done) {
int button;
+ long now;
if (ticks>max_ticks) {
if (round_time)
rb->lcd_puts(0, 1, "ROUND UP!");
@@ -201,7 +202,7 @@ static int run_timer(int nr)
}
*/
rb->lcd_puts(0, 0, player_info);
- long now=*rb->current_tick;
+ now=*rb->current_tick;
if (!pause) {
ticks+=now-last_tick;
if ((max_ticks-ticks)/HZ == 10) {