wip2 (one error to go)

This commit is contained in:
Per Lindgren 2021-03-11 17:47:46 +01:00
parent 78a6d84420
commit 1769a83fad

View file

@ -127,7 +127,7 @@ pub fn app(app: &App, analysis: &Analysis, extra: &Extra) -> TokenStream2 {
rtic::export::interrupt::free(|_| { rtic::export::interrupt::free(|_| {
use rtic::Monotonic as _; use rtic::Monotonic as _;
use rtic::time::Clock 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() { if let Ok(v) = m.try_now() {
v v
} else { } else {