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/cfg.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/cfg.rs') diff --git a/examples/cfg.rs b/examples/cfg.rs index 02b39e3..8eeeb2a 100644 --- a/examples/cfg.rs +++ b/examples/cfg.rs @@ -28,7 +28,9 @@ const APP: () = { fn idle(_: idle::Context) -> ! { debug::exit(debug::EXIT_SUCCESS); - loop {} + loop { + cortex_m::asm::nop(); + } } #[task(capacity = 2, resources = [count], spawn = [log])] -- cgit v1.2.3