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-cfg.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/t-cfg.rs') diff --git a/examples/t-cfg.rs b/examples/t-cfg.rs index 52e6d1c..b6c9e47 100644 --- a/examples/t-cfg.rs +++ b/examples/t-cfg.rs @@ -24,7 +24,9 @@ const APP: () = { #[cfg(never)] static mut BAR: u32 = 0; - loop {} + loop { + cortex_m::asm::nop(); + } } #[task(resources = [foo], schedule = [quux], spawn = [quux])] -- cgit v1.2.3