diff --git a/examples/rtic_bare7.rs b/examples/rtic_bare7.rs index 8d31e382550247afc64110a93ef7141ba39d4e86..9d62c245ee66e56bd183382eb863970bd05bdecd 100644 --- a/examples/rtic_bare7.rs +++ b/examples/rtic_bare7.rs @@ -77,15 +77,16 @@ const APP: () = { rprintln!("toggle @ {:?}", Instant::now()); //use the set high/low for push pull output - if *TOGGLE { - cx.resources.led.set_high().ok(); + // if *TOGGLE { + // cx.resources.led.set_high().ok(); - } else { - cx.resources.led.set_low().ok(); - } + // } else { + // cx.resources.led.set_low().ok(); + // } - *TOGGLE = !*TOGGLE; + // *TOGGLE = !*TOGGLE; + _toggle_generic(cx.resources.led, TOGGLE); cx.schedule.toggle(cx.scheduled + OFFSET.cycles()).unwrap(); }