mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
use request_pause instead of request_stop at adc shutdown
This commit is contained in:
parent
9c7b296432
commit
c991ddb766
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user