diff options
author | 2023-01-02 14:34:05 +0100 | |
---|---|---|
committer | 2023-03-01 00:31:01 +0100 | |
commit | 582c602912592ec7ebea3096aefa02aea99c2143 (patch) | |
tree | 96b14a130788960ee06d7e80adec43a167b4844b /examples/cancel-reschedule.rs | |
parent | 7614b96fe45240dafe91ae549e712b560e2d4c10 (diff) | |
download | rtic-582c602912592ec7ebea3096aefa02aea99c2143.tar.gz rtic-582c602912592ec7ebea3096aefa02aea99c2143.tar.zst rtic-582c602912592ec7ebea3096aefa02aea99c2143.zip |
Old xtask test pass
Diffstat (limited to '')
-rw-r--r-- | examples/cancel-reschedule.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/cancel-reschedule.rs b/examples/cancel-reschedule.rs index 36c496b7..a38a9c4e 100644 --- a/examples/cancel-reschedule.rs +++ b/examples/cancel-reschedule.rs @@ -2,7 +2,6 @@ #![deny(unsafe_code)] #![deny(warnings)] -#![deny(missing_docs)] #![no_main] #![no_std] @@ -29,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"); + hprintln!("init").ok(); // Schedule `foo` to run 1 second in the future foo::spawn_after(1.secs()).unwrap(); @@ -43,7 +42,7 @@ mod app { #[task] fn foo(_: foo::Context) { - hprintln!("foo"); + hprintln!("foo").ok(); // Schedule `bar` to run 2 seconds in the future (1 second after foo runs) let spawn_handle = baz::spawn_after(2.secs()).unwrap(); @@ -52,7 +51,7 @@ mod app { #[task] fn bar(_: bar::Context, baz_handle: baz::SpawnHandle, do_reschedule: bool) { - hprintln!("bar"); + hprintln!("bar").ok(); if do_reschedule { // Reschedule baz 2 seconds from now, instead of the original 1 second @@ -68,7 +67,7 @@ mod app { #[task] fn baz(_: baz::Context) { - hprintln!("baz"); + hprintln!("baz").ok(); debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator } } |