mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
Properly call on_interrupt
This commit is contained in:
parent
1a46345a2a
commit
1345f30a69
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
});
|
||||
}
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue