aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32/src/dac/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-stm32/src/dac/mod.rs b/embassy-stm32/src/dac/mod.rs
index 348d8bccd..7b81ec1f2 100644
--- a/embassy-stm32/src/dac/mod.rs
+++ b/embassy-stm32/src/dac/mod.rs
@@ -2,7 +2,7 @@
2 2
3use embassy_hal_common::{into_ref, PeripheralRef}; 3use embassy_hal_common::{into_ref, PeripheralRef};
4 4
5use crate::dma::{slice_ptr_parts, word, Transfer}; 5use crate::dma::Transfer;
6use crate::pac::dac; 6use crate::pac::dac;
7use crate::rcc::RccPeripheral; 7use crate::rcc::RccPeripheral;
8use crate::{peripherals, Peripheral}; 8use crate::{peripherals, Peripheral};
@@ -269,9 +269,9 @@ impl<'d, T: Instance, Tx> Dac<'d, T, Tx> {
269 269
270 T::regs().cr().modify(|w| { 270 T::regs().cr().modify(|w| {
271 // Disable the dac peripheral 271 // Disable the dac peripheral
272 //w.set_en(CHANNEL, false); 272 w.set_en(CHANNEL, false);
273 // Disable the DMA. TODO: Is this necessary? 273 // Disable the DMA. TODO: Is this necessary?
274 //w.set_dmaen(CHANNEL, false); 274 w.set_dmaen(CHANNEL, false);
275 }); 275 });
276 } 276 }
277 Ok(()) 277 Ok(())