aboutsummaryrefslogtreecommitdiff
path: root/examples/t-late-not-send.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2020-09-15 12:16:05 +0000
committerGravatar GitHub <noreply@github.com> 2020-09-15 12:16:05 +0000
commit7ebdc376839dbed9f47860bac44a806d28c1f39b (patch)
treeacdc969cdcd25155545d3dc51438be8fabcfdc0b /examples/t-late-not-send.rs
parentd4d68d9058e00513caa4898f5199d466b441e698 (diff)
parent413f525c933e0beba498b486afc3a81b84951989 (diff)
downloadrtic-7ebdc376839dbed9f47860bac44a806d28c1f39b.tar.gz
rtic-7ebdc376839dbed9f47860bac44a806d28c1f39b.tar.zst
rtic-7ebdc376839dbed9f47860bac44a806d28c1f39b.zip
Merge #358
358: Fixed so examples do not crash in release mode r=AfoHT a=korken89 Fixes #357 Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
Diffstat (limited to 'examples/t-late-not-send.rs')
-rw-r--r--examples/t-late-not-send.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/t-late-not-send.rs b/examples/t-late-not-send.rs
index c464e73b..d2a9b63c 100644
--- a/examples/t-late-not-send.rs
+++ b/examples/t-late-not-send.rs
@@ -31,6 +31,8 @@ const APP: () = {
#[idle(resources = [x, y])]
fn idle(_: idle::Context) -> ! {
- loop {}
+ loop {
+ cortex_m::asm::nop();
+ }
}
};