Skip to content

Commit

Permalink
Avoid set method on dac data
Browse files Browse the repository at this point in the history
  • Loading branch information
usbalbin committed Dec 15, 2024
1 parent 43bd938 commit e777c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
});
}
Expand Down

0 comments on commit e777c7e

Please sign in to comment.