diff options
| author | Henrik Tjäder <henrik@tjaders.com> | 2023-01-11 21:40:33 +0100 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2023-01-11 21:40:33 +0100 |
| commit | c370c0b21f054fa224680b95df63ca3d59f33ba1 (patch) | |
| tree | 2969b2084e81228aa17615498d8154178c0a8e41 /examples/periodic-at2.rs | |
| parent | 1fe587c5160b9e99bbb67644318cb9e5c9c56b4e (diff) | |
Remove ok() from hprintln!()
sd 'hprintln(.*).ok\(\)' 'hprintln' (fd -e rs .)
Diffstat (limited to 'examples/periodic-at2.rs')
| -rw-r--r-- | examples/periodic-at2.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/periodic-at2.rs b/examples/periodic-at2.rs index 879f709..35ebb52 100644 --- a/examples/periodic-at2.rs +++ b/examples/periodic-at2.rs @@ -36,7 +36,7 @@ mod app { // Using the explicit type of the timer implementation #[task(local = [cnt: u32 = 0])] fn foo(cx: foo::Context, instant: fugit::TimerInstantU64<100>) { - hprintln!("foo {:?}", instant).ok(); + hprintln!("foo {:?}", instant); *cx.local.cnt += 1; if *cx.local.cnt == 4 { @@ -52,7 +52,7 @@ mod app { // This remains agnostic to the timer implementation #[task(local = [cnt: u32 = 0])] fn bar(_cx: bar::Context, instant: <MyMono as rtic_monotonic::Monotonic>::Instant) { - hprintln!("bar {:?}", instant).ok(); + hprintln!("bar {:?}", instant); // Spawn a new message with 1s offset to spawned time let next_instant = instant + 1.secs(); |
