Fixed aliasing issue due to RacyCell implementation

This commit is contained in:
Emil Fresk 2021-11-02 13:41:12 +01:00
parent b25d775771
commit 8065d741ac
10 changed files with 47 additions and 49 deletions

View file

@ -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 {