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:
Andreas Bihlmaier 2017-03-09 12:52:33 +00:00 committed by Gregory Nutt
commit 1c5ededc48

View File

@ -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;