1
0
Fork 0
forked from len0rd/rockbox

Fix some yellow builds

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8913 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Brandon Low 2006-03-05 18:34:27 +00:00
parent 6668b65ef2
commit aab008053e
2 changed files with 2 additions and 3 deletions

View file

@ -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) {