mirror of
https://github.com/apache/nuttx.git
synced 2026-10-11 08:10:21 +00:00
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:
parent
37f994207d
commit
bdb60ac2f7
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue