From 1769a83fadea93f89d6d22c5703f35e8f2288795 Mon Sep 17 00:00:00 2001 From: Per Lindgren Date: Thu, 11 Mar 2021 17:47:46 +0100 Subject: [PATCH] wip2 (one error to go) --- macros/src/codegen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/src/codegen.rs b/macros/src/codegen.rs index c5d956877b..279cad00ba 100644 --- a/macros/src/codegen.rs +++ b/macros/src/codegen.rs @@ -127,7 +127,7 @@ pub fn app(app: &App, analysis: &Analysis, extra: &Extra) -> TokenStream2 { rtic::export::interrupt::free(|_| { use rtic::Monotonic as _; use rtic::time::Clock as _; - if let Some(m) = unsafe{ #app_path::#ident.as_ref() } { + if let Some(m) = unsafe{ #app_path::#ident.get_mut_unchecked().as_ref() } { if let Ok(v) = m.try_now() { v } else {