diff options
author | 2021-11-07 00:42:57 +0100 | |
---|---|---|
committer | 2021-11-07 00:42:57 +0100 | |
commit | 03af9b19943e3b953ec8f557e5359d6b8627de5b (patch) | |
tree | c2bdac78f57b191044537149940563bbc2957686 /macros/src/codegen/post_init.rs | |
parent | 7155b55ac8ff4e5f8860bd6f81c39d31756af633 (diff) | |
download | rtic-03af9b19943e3b953ec8f557e5359d6b8627de5b.tar.gz rtic-03af9b19943e3b953ec8f557e5359d6b8627de5b.tar.zst rtic-03af9b19943e3b953ec8f557e5359d6b8627de5b.zip |
Match new rtic-syntax naming of shared and local
Diffstat (limited to 'macros/src/codegen/post_init.rs')
-rw-r--r-- | macros/src/codegen/post_init.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/src/codegen/post_init.rs b/macros/src/codegen/post_init.rs index 07fbd03c..8bd3a7dd 100644 --- a/macros/src/codegen/post_init.rs +++ b/macros/src/codegen/post_init.rs @@ -14,7 +14,7 @@ pub fn codegen(app: &App, analysis: &Analysis) -> Vec<TokenStream2> { let mangled_name = util::static_shared_resource_ident(name); // If it's live let cfgs = res.cfgs.clone(); - if analysis.shared_resource_locations.get(name).is_some() { + if analysis.shared_resources.get(name).is_some() { stmts.push(quote!( // We include the cfgs #(#cfgs)* @@ -31,7 +31,7 @@ pub fn codegen(app: &App, analysis: &Analysis) -> Vec<TokenStream2> { let mangled_name = util::static_local_resource_ident(name); // If it's live let cfgs = res.cfgs.clone(); - if analysis.local_resource_locations.get(name).is_some() { + if analysis.local_resources.get(name).is_some() { stmts.push(quote!( // We include the cfgs #(#cfgs)* |