From abca8299268e55bdb80b649ceb6b0cc5d0f3c34a Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Fri, 24 Aug 2018 16:31:04 +0200 Subject: more fixes --- examples/full-syntax.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples/full-syntax.rs') diff --git a/examples/full-syntax.rs b/examples/full-syntax.rs index 5b27412..9bdcd7b 100644 --- a/examples/full-syntax.rs +++ b/examples/full-syntax.rs @@ -1,7 +1,6 @@ //! A showcase of the `app!` macro syntax #![deny(unsafe_code)] #![deny(warnings)] -#![feature(proc_macro)] #![no_std] extern crate cortex_m_rtfm as rtfm; @@ -60,7 +59,7 @@ mod main { pub fn idle(t: &mut Threshold, mut r: ::idle::Resources) -> ! { loop { - *r.OWNED != *r.OWNED; + *r.OWNED = !*r.OWNED; if *r.OWNED { if r.SHARED.claim(t, |shared, _| *shared) { -- cgit v1.2.3