aboutsummaryrefslogtreecommitdiff
path: root/examples/schedule.rs
diff options
context:
space:
mode:
authorGravatar Henrik Tjäder <henrik@tjaders.com> 2023-01-11 21:40:33 +0100
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2023-01-11 21:40:33 +0100
commitc370c0b21f054fa224680b95df63ca3d59f33ba1 (patch)
tree2969b2084e81228aa17615498d8154178c0a8e41 /examples/schedule.rs
parent1fe587c5160b9e99bbb67644318cb9e5c9c56b4e (diff)
downloadrtic-c370c0b21f054fa224680b95df63ca3d59f33ba1.tar.gz
rtic-c370c0b21f054fa224680b95df63ca3d59f33ba1.tar.zst
rtic-c370c0b21f054fa224680b95df63ca3d59f33ba1.zip
Remove ok() from hprintln!()
sd 'hprintln(.*).ok\(\)' 'hprintln' (fd -e rs .)
Diffstat (limited to 'examples/schedule.rs')
-rw-r--r--examples/schedule.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/schedule.rs b/examples/schedule.rs
index 5bad5a30..58e73dad 100644
--- a/examples/schedule.rs
+++ b/examples/schedule.rs
@@ -28,7 +28,7 @@ mod app {
// Initialize the monotonic (SysTick rate in QEMU is 12 MHz)
let mono = Systick::new(systick, 12_000_000);
- hprintln!("init").ok();
+ hprintln!("init");
// Schedule `foo` to run 1 second in the future
foo::spawn_after(1.secs()).unwrap();
@@ -42,7 +42,7 @@ mod app {
#[task]
fn foo(_: foo::Context) {
- hprintln!("foo").ok();
+ hprintln!("foo");
// Schedule `bar` to run 2 seconds in the future (1 second after foo runs)
bar::spawn_after(1.secs()).unwrap();
@@ -50,7 +50,7 @@ mod app {
#[task]
fn bar(_: bar::Context) {
- hprintln!("bar").ok();
+ hprintln!("bar");
// Schedule `baz` to run 1 seconds from now, but with a specific time instant.
baz::spawn_at(monotonics::now() + 1.secs()).unwrap();
@@ -58,7 +58,7 @@ mod app {
#[task]
fn baz(_: baz::Context) {
- hprintln!("baz").ok();
+ hprintln!("baz");
debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
}
}