diff options
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/as3525/ata_sd_as3525.c | 2 | ||||
-rw-r--r-- | firmware/target/arm/ipod/adc-ipod-pcf.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c index 57dc307e7f..ee4b8c015d 100644 --- a/firmware/target/arm/as3525/ata_sd_as3525.c +++ b/firmware/target/arm/as3525/ata_sd_as3525.c | |||
@@ -261,7 +261,7 @@ static int sd_init_card(const int drive) | |||
261 | 261 | ||
262 | do { | 262 | do { |
263 | /* timeout */ | 263 | /* timeout */ |
264 | if(current_tick > init_timeout) | 264 | if(TIME_AFTER(current_tick, init_timeout)) |
265 | return -2; | 265 | return -2; |
266 | 266 | ||
267 | /* app_cmd */ | 267 | /* app_cmd */ |
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 | ||
40 | static unsigned short _adc_read(struct adc_struct *adc) | 40 | static 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 | ||