We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1fc098 commit 0aabe28Copy full SHA for 0aabe28
src/watchdog.rs
@@ -127,12 +127,7 @@ impl IndependentWatchDog {
127
// If the prescaler was changed wait until the change procedure is finished.
128
while self.iwdg.sr().read().pvu().bit() {}
129
130
- let psc = self
131
- .iwdg
132
- .pr()
133
- .read()
134
135
- .variant();
+ let psc = self.iwdg.pr().read().pr().variant();
136
let reload = self.iwdg.rlr().read().rl().bits();
137
138
Milliseconds((into_division_value(psc) * u32::from(reload)) / LSI.integer())
0 commit comments