summaryrefslogtreecommitdiff
path: root/chip/stm32/adc-stm32f.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/adc-stm32f.c')
-rw-r--r--chip/stm32/adc-stm32f.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/chip/stm32/adc-stm32f.c b/chip/stm32/adc-stm32f.c
index e2053e331b..d1ffcd7f63 100644
--- a/chip/stm32/adc-stm32f.c
+++ b/chip/stm32/adc-stm32f.c
@@ -247,6 +247,8 @@ int adc_read_all_channels(int *data)
}
exit_all_channels:
+ dma_disable(STM32_DMAC_ADC);
+
if (restore_watchdog)
adc_enable_watchdog_no_lock();