Skip to content
This repository has been archived by the owner on May 15, 2021. It is now read-only.

Commit

Permalink
fix Millis->Lfticks using f64
Browse files Browse the repository at this point in the history
  • Loading branch information
droogmic committed Oct 27, 2018
1 parent 0a6911b commit 1095368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl Lfticks {

impl From<Millis> for Lfticks {
fn from(millis: Millis) -> Self {
Lfticks(u32(f64::from(millis.0) * 32.768).unwrap())
Lfticks(millis.0 * LFCLK_FREQ / 1000)
}
}

Expand Down

0 comments on commit 1095368

Please sign in to comment.