Cosmetic changes from review of last PR
This commit is contained in:
parent
d563a205ea
commit
77d01ab1da
@ -1667,6 +1667,7 @@ static void adc_dmaconvcallback(DMA_HANDLE handle, uint8_t isr, FAR void *arg)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Restart DMA for the next conversion series */
|
||||
|
||||
adc_modifyreg(priv, STM32_ADC_DMAREG_OFFSET, ADC_DMAREG_DMA, 0);
|
||||
|
@ -1479,17 +1479,19 @@ static uint32_t adc_sqrbits(FAR struct stm32_dev_s *priv, int first, int last,
|
||||
static bool adc_internal(FAR struct stm32_dev_s * priv)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (priv->intf == 1)
|
||||
{
|
||||
for (i = 0; i < priv->nchannels; i++)
|
||||
{
|
||||
if (priv->chanlist[i] > ADC_LAST_EXTERNAL_CHAN)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (priv->chanlist[i] > ADC_LAST_EXTERNAL_CHAN)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user