diff options
Diffstat (limited to 'apps/px4io/adc.c')
-rw-r--r-- | apps/px4io/adc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/px4io/adc.c b/apps/px4io/adc.c index e06b269dc..670b8d635 100644 --- a/apps/px4io/adc.c +++ b/apps/px4io/adc.c @@ -154,7 +154,7 @@ adc_measure(unsigned channel) while (!(rSR & ADC_SR_EOC)) { /* never spin forever - this will give a bogus result though */ - if ((hrt_absolute_time() - now) > 1000) { + if (hrt_elapsed_time(&now) > 1000) { debug("adc timeout"); break; } |