aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Vahter <[email protected]>2024-07-02 09:21:27 +0300
committerAndres Vahter <[email protected]>2024-07-02 09:21:27 +0300
commit1f30ad595b9ac2f3cdf1ecaa24e6d96d16286a16 (patch)
tree4ff25b07c97ff4b7970fb5b62c6ef5db1589e8a8
parent8cbb64226b802ed6ad7fc4d40bb002a32389aa3a (diff)
stm32 ringbuffered adc: fix for metapac changes
-rw-r--r--embassy-stm32/src/adc/ringbuffered_v2.rs2
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 fb29d9a8c..bc8ef2d13 100644
--- a/embassy-stm32/src/adc/ringbuffered_v2.rs
+++ b/embassy-stm32/src/adc/ringbuffered_v2.rs
@@ -291,7 +291,7 @@ impl<'d, T: Instance> RingBufferedAdc<'d, T> {
291 // Enable DMA mode 291 // Enable DMA mode
292 w.set_dma(true); 292 w.set_dma(true);
293 // Enable continuous conversions 293 // Enable continuous conversions
294 w.set_cont(vals::Cont::CONTINUOUS); 294 w.set_cont(true);
295 // DMA requests are issues as long as DMA=1 and data are converted. 295 // DMA requests are issues as long as DMA=1 and data are converted.
296 w.set_dds(vals::Dds::CONTINUOUS); 296 w.set_dds(vals::Dds::CONTINUOUS);
297 // EOC flag is set at the end of each conversion. 297 // EOC flag is set at the end of each conversion.