aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2021-11-03 08:45:53 +0000
committerGravatar GitHub <noreply@github.com> 2021-11-03 08:45:53 +0000
commit7155b55ac8ff4e5f8860bd6f81c39d31756af633 (patch)
tree82d4de23a49ece531207b2ac065e371bb9fd20f1 /macros/src/codegen.rs
parentb25d775771f7ecc4fdfc5a2faaeb52e63cc344c9 (diff)
parent9e24fcbbd90609a25b9d985f9292900b476fe5ea (diff)
downloadrtic-7155b55ac8ff4e5f8860bd6f81c39d31756af633.tar.gz
rtic-7155b55ac8ff4e5f8860bd6f81c39d31756af633.tar.zst
rtic-7155b55ac8ff4e5f8860bd6f81c39d31756af633.zip
Merge #548
548: Fixed aliasing issue due to RacyCell implementation r=perlindgren a=korken89 Co-authored-by: Emil Fresk <emil.fresk@gmail.com> Co-authored-by: Per Lindgren <per.lindgren@ltu.se>
Diffstat (limited to 'macros/src/codegen.rs')
-rw-r--r--macros/src/codegen.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/src/codegen.rs b/macros/src/codegen.rs
index 63a4e3ca..f07326ba 100644
--- a/macros/src/codegen.rs
+++ b/macros/src/codegen.rs
@@ -135,7 +135,7 @@ pub fn app(app: &App, analysis: &Analysis, extra: &Extra) -> TokenStream2 {
rtic::export::interrupt::free(|_| {
use rtic::Monotonic as _;
use rtic::time::Clock as _;
- if let Some(m) = unsafe{ super::super::#ident.get_mut_unchecked() } {
+ if let Some(m) = unsafe{ &mut *super::super::#ident.get_mut() } {
if let Ok(v) = m.try_now() {
v
} else {