Skip to content

Commit 0aabe28

Browse files
committed
fmt
1 parent a1fc098 commit 0aabe28

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/watchdog.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,7 @@ impl IndependentWatchDog {
127127
// If the prescaler was changed wait until the change procedure is finished.
128128
while self.iwdg.sr().read().pvu().bit() {}
129129

130-
let psc = self
131-
.iwdg
132-
.pr()
133-
.read()
134-
.pr()
135-
.variant();
130+
let psc = self.iwdg.pr().read().pr().variant();
136131
let reload = self.iwdg.rlr().read().rl().bits();
137132

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

0 commit comments

Comments
 (0)