use request_pause instead of request_stop at adc shutdown

This commit is contained in:
Alexandros Liarokapis 2024-09-24 17:46:53 +03:00
parent 9c7b296432
commit c991ddb766

View File

@ -244,7 +244,7 @@ impl<'d, T: Instance> RingBufferedAdc<'d, T> {
/// [`start`]: #method.start
pub fn teardown_adc(&mut self) {
// Stop the DMA transfer
self.ring_buf.request_stop();
self.ring_buf.request_pause();
let r = T::regs();