diff options
author | Brandon Low <lostlogic@rockbox.org> | 2006-03-05 18:34:27 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2006-03-05 18:34:27 +0000 |
commit | aab008053eac49d0d73c3835b27f77163cfe4a5b (patch) | |
tree | 9b7e776c1252f5a5a1712bb3ff6e90985a39df55 /firmware | |
parent | 6668b65ef22c5ad6dd13b4a63de22763ff6f93da (diff) | |
download | rockbox-aab008053eac49d0d73c3835b27f77163cfe4a5b.tar.gz rockbox-aab008053eac49d0d73c3835b27f77163cfe4a5b.zip |
Fix some yellow builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8913 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/common/timefuncs.c | 3 | ||||
-rw-r--r-- | firmware/drivers/adc.c | 2 |
2 files changed, 2 insertions, 3 deletions
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) | |||
43 | return true; | 43 | return true; |
44 | } | 44 | } |
45 | 45 | ||
46 | static int last_tick = 0; | ||
47 | |||
48 | struct tm *get_time(void) | 46 | struct tm *get_time(void) |
49 | { | 47 | { |
50 | #ifndef SIMULATOR | 48 | #ifndef SIMULATOR |
51 | #ifdef CONFIG_RTC | 49 | #ifdef CONFIG_RTC |
50 | static long last_tick = 0; | ||
52 | 51 | ||
53 | /* Don't read the RTC more than 4 times per second */ | 52 | /* Don't read the RTC more than 4 times per second */ |
54 | if (last_tick + HZ/4 < current_tick) { | 53 | if (last_tick + HZ/4 < current_tick) { |
diff --git a/firmware/drivers/adc.c b/firmware/drivers/adc.c index 1755fafb99..f4bdb7a54f 100644 --- a/firmware/drivers/adc.c +++ b/firmware/drivers/adc.c | |||
@@ -321,7 +321,7 @@ void adc_init(void) | |||
321 | { | 321 | { |
322 | struct adc_struct *adc_battery = &adcdata[ADC_BATTERY]; | 322 | struct adc_struct *adc_battery = &adcdata[ADC_BATTERY]; |
323 | adc_battery->channelnum = 0x3; /* ADCVIN1, subtractor */ | 323 | adc_battery->channelnum = 0x3; /* ADCVIN1, subtractor */ |
324 | 324 | adc_battery->last_read = current_tick; | |
325 | adc_scan(adc_battery); | 325 | adc_scan(adc_battery); |
326 | } | 326 | } |
327 | 327 | ||