Skip to content

Commit

Permalink
Xosc: CrystalConfig: Impossible constructor fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vcchtjader committed Oct 14, 2021
1 parent 2a7f7bf commit ff8fa93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hal/src/thumbv7em/clock/v2/xosc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pub struct CrystalConfig {

impl CrystalConfig {
/// Create a new [`CrystalConfig`] running at frequency `src_freq`
pub fn new(&self, src_freq: impl Into<Hertz>) -> Result<Self, ()> {
pub fn new(src_freq: impl Into<Hertz>) -> Result<Self, ()> {
// Calculate the CrystalCurrent from the supplied
// crystal frequency
let (current, src_freq) = match src_freq.into().0 {
Expand Down

0 comments on commit ff8fa93

Please sign in to comment.