drivers: adc: disabling timer after DMA eror
The ADC timer should be disabled however the read is finished. Signed-off-by: John Bason Mitchell <johnbasonmitchell@gmail.com>
This commit is contained in:
parent
8501c46772
commit
28c2521926
@ -819,6 +819,9 @@ static void dma_callback(const struct device *dev, void *user_data,
|
||||
LL_ADC_REG_StopConversion(adc);
|
||||
#endif
|
||||
dma_stop(data->dma.dma_dev, data->dma.channel);
|
||||
if (data->ctx.options.interval_us != 0U) {
|
||||
adc_context_disable_timer(&data->ctx);
|
||||
}
|
||||
adc_context_complete(&data->ctx, status);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user