From aab008053eac49d0d73c3835b27f77163cfe4a5b Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Sun, 5 Mar 2006 18:34:27 +0000 Subject: Fix some yellow builds git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8913 a1c6a512-1295-4272-9138-f99709370657 --- firmware/common/timefuncs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'firmware/common/timefuncs.c') diff --git a/firmware/common/timefuncs.c b/firmware/common/timefuncs.c index 19033a504e..6671dc0739 100644 --- a/firmware/common/timefuncs.c +++ b/firmware/common/timefuncs.c @@ -43,12 +43,11 @@ bool valid_time(const struct tm *tm) return true; } -static int last_tick = 0; - struct tm *get_time(void) { #ifndef SIMULATOR #ifdef CONFIG_RTC + static long last_tick = 0; /* Don't read the RTC more than 4 times per second */ if (last_tick + HZ/4 < current_tick) { -- cgit v1.2.3