Merged in andreasBihlmaier/nuttx/fixes-lpc43_adc (pull request #250)
fix logic error in lpc43_adc Approved-by: Gregory Nutt
This commit is contained in:
commit
1c5ededc48
@ -470,7 +470,7 @@ static int adc_interrupt(int irq, void *context, FAR void *arg)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (priv->freq == 0 && priv->m_ch) /* clear burst mode */
|
||||
if (priv->freq == 0 && !priv->m_ch) /* clear burst mode */
|
||||
{
|
||||
regval = getreg32(LPC43_ADC0_CR);
|
||||
regval &= ~ADC_CR_BURST;
|
||||
|
Loading…
Reference in New Issue
Block a user