diff --git a/src/dac.rs b/src/dac.rs index e5406290..8ebe6ee1 100644 --- a/src/dac.rs +++ b/src/dac.rs @@ -32,7 +32,7 @@ impl Dac { // SAFETY: Direct write to register for easier sharing between different stm32f3xx svd // generated API unsafe { - w.dacc1dhr().set(data) + w.dacc1dhr().bits(data) } }); }