Skip to content
Snippets Groups Projects
Commit e0a8d618 authored by ahb's avatar ahb
Browse files

fix logic error in lpc43_adc

parent f50072bd
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment