Cosmetic changes from review of last PR

This commit is contained in:
Gregory Nutt 2016-06-18 13:00:17 -06:00
parent d563a205ea
commit 77d01ab1da
2 changed files with 7 additions and 4 deletions

View File

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

View File

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