diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2020-09-14 09:35:10 +0200 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2020-09-14 09:35:10 +0200 |
| commit | 413f525c933e0beba498b486afc3a81b84951989 (patch) | |
| tree | ffc810a3fb0e764838eea6d75107bc7a3b662314 /examples/t-cfg-resources.rs | |
| parent | c5e6d1fa49e3596227a8ee8fe89e2e4f66db3169 (diff) | |
Fixed so examples do not crash in release mode
Diffstat (limited to 'examples/t-cfg-resources.rs')
| -rw-r--r-- | examples/t-cfg-resources.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/t-cfg-resources.rs b/examples/t-cfg-resources.rs index eb00fe5..4f7fd63 100644 --- a/examples/t-cfg-resources.rs +++ b/examples/t-cfg-resources.rs @@ -31,6 +31,8 @@ const APP: () = { #[idle] fn idle(_cx: idle::Context) -> ! { - loop {} + loop { + cortex_m::asm::nop(); + } } }; |
