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:
John Bason Mitchell 2025-04-25 18:27:33 +01:00 committed by Fabio Baltieri
parent 8501c46772
commit 28c2521926

View File

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