Skip to content

Commit a6d1ee4

Browse files
committed
Updated to new monotonic
1 parent 4ebf362 commit a6d1ee4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dwt-systick-monotonic"
3-
version = "0.1.0-alpha.2"
3+
version = "0.1.0-alpha.3"
44
authors = [
55
"The Real-Time Interrupt-driven Concurrency developers",
66
"Emil Fresk <[email protected]>",
@@ -19,4 +19,4 @@ name = "dwt_systick_monotonic"
1919

2020
[dependencies]
2121
cortex-m = "0.7"
22-
rtic-monotonic = "0.1.0-alpha.1"
22+
rtic-monotonic = "0.1.0-alpha.2"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl<const FREQ: u32> Monotonic for DwtSystick<FREQ> {
7272
// "Setting SYST_RVR to zero has the effect of
7373
// disabling the SysTick counter independently
7474
// of the counter enable bit.", so the min is 1
75-
Some(x) => max.min(*x.integer()).max(1),
75+
Some(x) => max.min(x.integer()).max(1),
7676
};
7777

7878
self.systick.set_reload(dur);

0 commit comments

Comments
 (0)