summaryrefslogtreecommitdiff
path: root/firmware/target/arm/ipod/adc-ipod-pcf.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/ipod/adc-ipod-pcf.c')
-rw-r--r--firmware/target/arm/ipod/adc-ipod-pcf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/ipod/adc-ipod-pcf.c b/firmware/target/arm/ipod/adc-ipod-pcf.c
index 65b25c36a3..e4a54e09f8 100644
--- a/firmware/target/arm/ipod/adc-ipod-pcf.c
+++ b/firmware/target/arm/ipod/adc-ipod-pcf.c
@@ -39,7 +39,7 @@ static struct adc_struct adcdata[NUM_ADC_CHANNELS] IDATA_ATTR;
39 39
40static unsigned short _adc_read(struct adc_struct *adc) 40static unsigned short _adc_read(struct adc_struct *adc)
41{ 41{
42 if (adc->timeout < current_tick) { 42 if (TIME_AFTER(current_tick, adc->timeout)) {
43 unsigned char data[2]; 43 unsigned char data[2];
44 unsigned short value; 44 unsigned short value;
45 45