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/types.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/types.rs') diff --git a/examples/types.rs b/examples/types.rs index e14ab0c..5233f86 100644 --- a/examples/types.rs +++ b/examples/types.rs @@ -32,7 +32,9 @@ const APP: () = { let _: idle::Schedule = cx.schedule; let _: idle::Spawn = cx.spawn; - loop {} + loop { + cortex_m::asm::nop(); + } } #[task(binds = UART0, resources = [shared], schedule = [foo], spawn = [foo])] -- cgit v1.2.3