fix logic error in lpc43_adc

This commit is contained in:
ahb 2017-03-09 11:17:11 +01:00
parent f50072bd6b
commit e0a8d61804

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;