From e777c7e623a2fe2e6cb6d95a0696814d0b1f490b Mon Sep 17 00:00:00 2001 From: Albin Hedman Date: Sun, 15 Dec 2024 18:38:00 +0100 Subject: [PATCH] Avoid set method on dac data --- src/dac.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }); }