diff options
author | 2021-05-06 19:40:37 +0200 | |
---|---|---|
committer | 2021-05-06 19:40:37 +0200 | |
commit | b4509bdbfe7cd5accf4c6b791a18ca55183a4993 (patch) | |
tree | 77d5cf702a9be6afa123844af07f316338527714 /macros/src/codegen/hardware_tasks.rs | |
parent | aad8f81991c3495f225df80d7c8456faecd40728 (diff) | |
download | rtic-b4509bdbfe7cd5accf4c6b791a18ca55183a4993.tar.gz rtic-b4509bdbfe7cd5accf4c6b791a18ca55183a4993.tar.zst rtic-b4509bdbfe7cd5accf4c6b791a18ca55183a4993.zip |
Flattened the _ out of it
Diffstat (limited to 'macros/src/codegen/hardware_tasks.rs')
-rw-r--r-- | macros/src/codegen/hardware_tasks.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/macros/src/codegen/hardware_tasks.rs b/macros/src/codegen/hardware_tasks.rs index 540b95e5..003660c7 100644 --- a/macros/src/codegen/hardware_tasks.rs +++ b/macros/src/codegen/hardware_tasks.rs @@ -40,8 +40,6 @@ pub fn codegen( let cfgs = &task.cfgs; let attrs = &task.attrs; - let app_name = &app.name; - let app_path = quote! {crate::#app_name}; mod_app.push(quote!( #[allow(non_snake_case)] #[no_mangle] @@ -51,7 +49,7 @@ pub fn codegen( const PRIORITY: u8 = #priority; rtic::export::run(PRIORITY, || { - #app_path::#name( + #name( #locals_new #name::Context::new(&rtic::export::Priority::new(PRIORITY)) ) |