aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/idle.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2020-06-11 16:22:33 +0000
committerGravatar GitHub <noreply@github.com> 2020-06-11 16:22:33 +0000
commit4795c1dba39b908bcab4ac148e691e2e99594289 (patch)
tree169da65f2ba2ede45eaf40bcfb6c76a87c4b443a /macros/src/codegen/idle.rs
parent4397fbf76285658a108b0f17665f4024d97cfcb3 (diff)
parent0ad311074e3d49a66174f59c47c4d6183ce7e3a0 (diff)
downloadrtic-4795c1dba39b908bcab4ac148e691e2e99594289.tar.gz
rtic-4795c1dba39b908bcab4ac148e691e2e99594289.tar.zst
rtic-4795c1dba39b908bcab4ac148e691e2e99594289.zip
Merge #315
315: allow handlers to be named 'main' r=korken89 a=japaric `#[init]`, `#[idle]` and `#[task]` handlers can now be named `main` fixes #311 Co-authored-by: Jorge Aparicio <jorge.aparicio@ferrous-systems.com>
Diffstat (limited to 'macros/src/codegen/idle.rs')
-rw-r--r--macros/src/codegen/idle.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/src/codegen/idle.rs b/macros/src/codegen/idle.rs
index 35a72523..72432f67 100644
--- a/macros/src/codegen/idle.rs
+++ b/macros/src/codegen/idle.rs
@@ -72,7 +72,7 @@ pub fn codegen(
));
let locals_new = locals_new.iter();
- let call_idle = quote!(#name(
+ let call_idle = quote!(crate::#name(
#(#locals_new,)*
#name::Context::new(&rtfm::export::Priority::new(0))
));