Skip to content

Commit e777c7e

Browse files
committed
Avoid set method on dac data
1 parent 43bd938 commit e777c7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dac.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl Dac {
3232
// SAFETY: Direct write to register for easier sharing between different stm32f3xx svd
3333
// generated API
3434
unsafe {
35-
w.dacc1dhr().set(data)
35+
w.dacc1dhr().bits(data)
3636
}
3737
});
3838
}

0 commit comments

Comments
 (0)