aboutsummaryrefslogtreecommitdiff
path: root/examples/hardware.rs
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2020-09-14 09:35:10 +0200
committerGravatar Emil Fresk <emil.fresk@gmail.com> 2020-09-14 09:35:10 +0200
commit413f525c933e0beba498b486afc3a81b84951989 (patch)
treeffc810a3fb0e764838eea6d75107bc7a3b662314 /examples/hardware.rs
parentc5e6d1fa49e3596227a8ee8fe89e2e4f66db3169 (diff)
downloadrtic-413f525c933e0beba498b486afc3a81b84951989.tar.gz
rtic-413f525c933e0beba498b486afc3a81b84951989.tar.zst
rtic-413f525c933e0beba498b486afc3a81b84951989.zip
Fixed so examples do not crash in release mode
Diffstat (limited to 'examples/hardware.rs')
-rw-r--r--examples/hardware.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/hardware.rs b/examples/hardware.rs
index 9f1c664e..8105a742 100644
--- a/examples/hardware.rs
+++ b/examples/hardware.rs
@@ -30,7 +30,9 @@ const APP: () = {
debug::exit(debug::EXIT_SUCCESS);
- loop {}
+ loop {
+ cortex_m::asm::nop();
+ }
}
#[task(binds = UART0)]