From 413f525c933e0beba498b486afc3a81b84951989 Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Mon, 14 Sep 2020 09:35:10 +0200 Subject: Fixed so examples do not crash in release mode --- examples/t-late-not-send.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/t-late-not-send.rs') diff --git a/examples/t-late-not-send.rs b/examples/t-late-not-send.rs index c464e73..d2a9b63 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(); + } } }; -- cgit v1.2.3