mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
fix logic error in lpc43_adc
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user