Browse Source

imxrt:ADC extend timeout

master
David Sidrane 3 years ago committed by Daniel Agar
parent
commit
a11fe60135
  1. 2
      platforms/nuttx/src/px4/nxp/imxrt/adc/adc.cpp

2
platforms/nuttx/src/px4/nxp/imxrt/adc/adc.cpp

@ -180,7 +180,7 @@ uint32_t px4_arch_adc_sample(uint32_t base_address, unsigned channel) @@ -180,7 +180,7 @@ uint32_t px4_arch_adc_sample(uint32_t base_address, unsigned channel)
/* don't wait for more than 10us, since that means something broke
* should reset here if we see this
*/
if ((hrt_absolute_time() - now) > 10) {
if ((hrt_absolute_time() - now) > 30) {
px4_leave_critical_section(flags);
return UINT32_MAX;
}

Loading…
Cancel
Save