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:
parent
6668b65ef2
commit
aab008053e
2 changed files with 2 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -321,7 +321,7 @@ void adc_init(void)
|
|||
{
|
||||
struct adc_struct *adc_battery = &adcdata[ADC_BATTERY];
|
||||
adc_battery->channelnum = 0x3; /* ADCVIN1, subtractor */
|
||||
|
||||
adc_battery->last_read = current_tick;
|
||||
adc_scan(adc_battery);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue