diff options
author | 2020-10-11 19:41:57 +0200 | |
---|---|---|
committer | 2020-10-11 20:35:50 +0200 | |
commit | 5b8e6a22ab68e316e11641dedf5b39e20878c7b7 (patch) | |
tree | 1bdc1812ca24203f3b99f381b1e9f8c89f60be24 /macros/src/codegen/pre_init.rs | |
parent | 524273c96a978299b64e51a9cdcc007585a0f170 (diff) | |
download | rtic-5b8e6a22ab68e316e11641dedf5b39e20878c7b7.tar.gz rtic-5b8e6a22ab68e316e11641dedf5b39e20878c7b7.tar.zst rtic-5b8e6a22ab68e316e11641dedf5b39e20878c7b7.zip |
Fixing examples and tests, modules now import user imports correctly
Fmt
Correct syntax crate
UI test fix
Fix build script
Cleanup
More cleanup
Diffstat (limited to 'macros/src/codegen/pre_init.rs')
-rw-r--r-- | macros/src/codegen/pre_init.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/macros/src/codegen/pre_init.rs b/macros/src/codegen/pre_init.rs index bc87b1df..02afdf95 100644 --- a/macros/src/codegen/pre_init.rs +++ b/macros/src/codegen/pre_init.rs @@ -12,12 +12,8 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec<TokenStream stmts.push(quote!(rtic::export::interrupt::disable();)); // Populate the FreeQueue - for fq in &app.software_tasks { - // Get the task name - let name = fq.0; - let task = fq.1; + for (name, task) in &app.software_tasks { let cap = task.args.capacity; - let fq_ident = util::fq_ident(name); stmts.push(quote!( |