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 57931ca commit 90875dbCopy full SHA for 90875db
src/independent_watchdog.rs
@@ -100,9 +100,9 @@ impl IndependentWatchdog {
100
.write(|w| w.win().bits(Self::MAX_COUNTER_VALUE as u16));
101
102
// Calculate the counter values
103
- let reload_value = (max_window_time.ticks() / 1000) * (Self::CLOCK_SPEED / 1000)
+ let reload_value = max_window_time.to_millis() * (Self::CLOCK_SPEED / 1000)
104
/ Self::get_prescaler_divider(prescaler);
105
- let window_value = (min_window_time.ticks() / 1000) * (Self::CLOCK_SPEED / 1000)
+ let window_value = min_window_time.to_millis() * (Self::CLOCK_SPEED / 1000)
106
107
108
// Set the reload value
0 commit comments