diff options
Diffstat (limited to '')
-rw-r--r-- | macros/src/codegen/hardware_tasks.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/macros/src/codegen/hardware_tasks.rs b/macros/src/codegen/hardware_tasks.rs index a9c2a2bd..70bb3390 100644 --- a/macros/src/codegen/hardware_tasks.rs +++ b/macros/src/codegen/hardware_tasks.rs @@ -64,15 +64,11 @@ pub fn codegen( #cfg_core unsafe fn #symbol() { const PRIORITY: u8 = #priority; - #let_instant - - rtfm::export::run(PRIORITY, || { - crate::#name( - #locals_new - #name::Context::new(&rtfm::export::Priority::new(PRIORITY) #instant) - ) - }); + crate::#name( + #locals_new + #name::Context::new(&rtfm::export::Priority::new(PRIORITY) #instant) + ); } )); |