Properly call on_interrupt

This commit is contained in:
Emil Fresk 2021-02-21 21:57:18 +01:00
parent 1a46345a2a
commit 1345f30a69

View file

@ -136,6 +136,10 @@ pub fn codegen(app: &App, analysis: &Analysis, _extra: &Extra) -> Vec<TokenStrea
#(#arms)*
}
}
rtic::export::interrupt::free(|_| if let Some(mono) = #app_path::#m_ident.as_mut() {
mono.on_interrupt();
});
}
));
}