aboutsummaryrefslogtreecommitdiff
path: root/examples/hardware.rs
diff options
context:
space:
mode:
authorGravatar Henrik Tjäder <henrik@tjaders.com> 2023-01-11 21:33:44 +0100
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2023-01-11 21:33:44 +0100
commit1fe587c5160b9e99bbb67644318cb9e5c9c56b4e (patch)
tree226bb5664329af932c9444cdc1b8134dcfd3c929 /examples/hardware.rs
parent67cccbd4819c4d874780a6b388d7f10c1c8031b2 (diff)
downloadrtic-1fe587c5160b9e99bbb67644318cb9e5c9c56b4e.tar.gz
rtic-1fe587c5160b9e99bbb67644318cb9e5c9c56b4e.tar.zst
rtic-1fe587c5160b9e99bbb67644318cb9e5c9c56b4e.zip
Remove unwrap() from hprintln!()
sd 'hprintln(.*).unwrap\(\)' 'hprintln' (fd -e rs .)
Diffstat (limited to 'examples/hardware.rs')
-rw-r--r--examples/hardware.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/hardware.rs b/examples/hardware.rs
index 60632247..22cf5d92 100644
--- a/examples/hardware.rs
+++ b/examples/hardware.rs
@@ -24,7 +24,7 @@ mod app {
// `init` returns because interrupts are disabled
rtic::pend(Interrupt::UART0); // equivalent to NVIC::pend
- hprintln!("init").unwrap();
+ hprintln!("init");
(Shared {}, Local {}, init::Monotonics())
}
@@ -33,7 +33,7 @@ mod app {
fn idle(_: idle::Context) -> ! {
// interrupts are enabled again; the `UART0` handler runs at this point
- hprintln!("idle").unwrap();
+ hprintln!("idle");
rtic::pend(Interrupt::UART0);