diff options
| author | Alexandros Liarokapis <[email protected]> | 2024-09-24 17:46:53 +0300 |
|---|---|---|
| committer | Alexandros Liarokapis <[email protected]> | 2024-10-15 12:29:12 +0300 |
| commit | c991ddb76662cc7da5e847f33c1a446f17822887 (patch) | |
| tree | 8b065a203b5759a69558fe8c11c863e6a2f1648a | |
| parent | 9c7b296432af40ac44e5e65a3742c691f1414444 (diff) | |
use request_pause instead of request_stop at adc shutdown
| -rw-r--r-- | embassy-stm32/src/adc/ringbuffered_v2.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/adc/ringbuffered_v2.rs b/embassy-stm32/src/adc/ringbuffered_v2.rs index 9fc233222..9c114e463 100644 --- a/embassy-stm32/src/adc/ringbuffered_v2.rs +++ b/embassy-stm32/src/adc/ringbuffered_v2.rs | |||
| @@ -244,7 +244,7 @@ impl<'d, T: Instance> RingBufferedAdc<'d, T> { | |||
| 244 | /// [`start`]: #method.start | 244 | /// [`start`]: #method.start |
| 245 | pub fn teardown_adc(&mut self) { | 245 | pub fn teardown_adc(&mut self) { |
| 246 | // Stop the DMA transfer | 246 | // Stop the DMA transfer |
| 247 | self.ring_buf.request_stop(); | 247 | self.ring_buf.request_pause(); |
| 248 | 248 | ||
| 249 | let r = T::regs(); | 249 | let r = T::regs(); |
| 250 | 250 | ||
