diff options
author | 2020-09-14 09:35:10 +0200 | |
---|---|---|
committer | 2020-09-14 09:35:10 +0200 | |
commit | 413f525c933e0beba498b486afc3a81b84951989 (patch) | |
tree | ffc810a3fb0e764838eea6d75107bc7a3b662314 /examples/t-spawn.rs | |
parent | c5e6d1fa49e3596227a8ee8fe89e2e4f66db3169 (diff) | |
download | rtic-413f525c933e0beba498b486afc3a81b84951989.tar.gz rtic-413f525c933e0beba498b486afc3a81b84951989.tar.zst rtic-413f525c933e0beba498b486afc3a81b84951989.zip |
Fixed so examples do not crash in release mode
Diffstat (limited to 'examples/t-spawn.rs')
-rw-r--r-- | examples/t-spawn.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/t-spawn.rs b/examples/t-spawn.rs index 2d941b15..35831ccf 100644 --- a/examples/t-spawn.rs +++ b/examples/t-spawn.rs @@ -22,7 +22,9 @@ const APP: () = { let _: Result<(), u32> = c.spawn.bar(0); let _: Result<(), (u32, u32)> = c.spawn.baz(0, 1); - loop {} + loop { + cortex_m::asm::nop(); + } } #[task(binds = SVCall, spawn = [foo, bar, baz])] |