Change stm32 adc dma callback to send channel number instead of index

This commit is contained in:
Konstantin Berezenko 2016-08-17 13:02:36 -07:00
parent 5d5851a5cd
commit 9b3bbc0f09
1 changed files with 1 additions and 1 deletions

View File

@ -1657,7 +1657,7 @@ static void adc_dmaconvcallback(DMA_HANDLE handle, uint8_t isr, FAR void *arg)
for (i = 0; i < priv->nchannels; i++)
{
priv->cb->au_receive(dev, priv->current, priv->dmabuffer[priv->current]);
priv->cb->au_receive(dev, priv->chanlist[priv->current], priv->dmabuffer[priv->current]);
priv->current++;
if (priv->current >= priv->nchannels)
{