aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/module.rs
diff options
context:
space:
mode:
Diffstat (limited to 'macros/src/codegen/module.rs')
-rw-r--r--macros/src/codegen/module.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/macros/src/codegen/module.rs b/macros/src/codegen/module.rs
index adf64d5b..4fba2f38 100644
--- a/macros/src/codegen/module.rs
+++ b/macros/src/codegen/module.rs
@@ -5,7 +5,8 @@ use rtic_syntax::{ast::App, Context};
pub fn codegen(
ctxt: Context,
- resources_tick: bool,
+ shared_resources_tick: bool,
+ local_resources_tick: bool,
app: &App,
analysis: &Analysis,
extra: &Extra,
@@ -67,7 +68,7 @@ pub fn codegen(
if ctxt.has_local_resources(app) {
let ident = util::local_resources_ident(ctxt, app);
let ident = util::mark_internal_ident(&ident);
- let lt = if resources_tick {
+ let lt = if local_resources_tick {
lt = Some(quote!('a));
Some(quote!('a))
} else {
@@ -90,7 +91,7 @@ pub fn codegen(
if ctxt.has_shared_resources(app) {
let ident = util::shared_resources_ident(ctxt, app);
let ident = util::mark_internal_ident(&ident);
- let lt = if resources_tick {
+ let lt = if shared_resources_tick {
lt = Some(quote!('a));
Some(quote!('a))
} else {