diff options
Diffstat (limited to 'examples/t-late-not-send.rs')
-rw-r--r-- | examples/t-late-not-send.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/examples/t-late-not-send.rs b/examples/t-late-not-send.rs index c464e73b..345d9aef 100644 --- a/examples/t-late-not-send.rs +++ b/examples/t-late-not-send.rs @@ -12,7 +12,10 @@ pub struct NotSend { } #[rtic::app(device = lm3s6965)] -const APP: () = { +mod app { + use super::NotSend; + + #[resources] struct Resources { x: NotSend, #[init(None)] @@ -31,6 +34,8 @@ const APP: () = { #[idle(resources = [x, y])] fn idle(_: idle::Context) -> ! { - loop {} + loop { + cortex_m::asm::nop(); + } } -}; +} |