arch/arm/src/stm32/stm32_adc.c: Very mysterious. Several configurations now fail to build stm32_adc.o. This chante avoids those build failures, yet I see no code changed in recent months that should affect this. Any insights anyone?

This commit is contained in:
Gregory Nutt 2018-11-20 12:29:37 -06:00
parent 37f994207d
commit bdb60ac2f7

View File

@ -3011,6 +3011,7 @@ static int adc_ioctl(FAR struct adc_dev_s *dev, int cmd, unsigned long arg)
return ret;
}
#ifdef CONFIG_ADC
if (ch)
{
/* Clear fifo */
@ -3018,6 +3019,7 @@ static int adc_ioctl(FAR struct adc_dev_s *dev, int cmd, unsigned long arg)
dev->ad_recv.af_head = 0;
dev->ad_recv.af_tail = 0;
}
#endif
adc_startconv(priv, true);
break;