Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
usbalbin committed Jan 3, 2025
1 parent a1fc098 commit 0aabe28
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/watchdog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,7 @@ impl IndependentWatchDog {
// If the prescaler was changed wait until the change procedure is finished.
while self.iwdg.sr().read().pvu().bit() {}

let psc = self
.iwdg
.pr()
.read()
.pr()
.variant();
let psc = self.iwdg.pr().read().pr().variant();
let reload = self.iwdg.rlr().read().rl().bits();

Milliseconds((into_division_value(psc) * u32::from(reload)) / LSI.integer())
Expand Down

0 comments on commit 0aabe28

Please sign in to comment.