diff --git a/examples/samv71-fizz-buzz/src/main.rs b/examples/samv71-fizz-buzz/src/main.rs index b47bf92a..090d7ac1 100644 --- a/examples/samv71-fizz-buzz/src/main.rs +++ b/examples/samv71-fizz-buzz/src/main.rs @@ -12,7 +12,6 @@ use aerugo::{ TaskletConfig, TaskletStorage, AERUGO, }; -use cortex_m::asm; use rtt::{rprint, rprintln}; use runtime::entry; @@ -76,10 +75,6 @@ struct DoneContext {} fn done(_: bool, _: &mut DoneContext, _: &'static dyn RuntimeApi) { rprint!("Done!\n"); - - loop { - asm::nop(); - } } static PRODUCER_STORAGE: TaskletStorage<(), ProducerContext, 1> = TaskletStorage::new(); @@ -203,7 +198,7 @@ fn main() -> ! { let done_config = TaskletConfig { name: "Done", - priority: 4, + ..Default::default() }; AERUGO diff --git a/src/boolean_condition.rs b/src/boolean_condition.rs index 8616c4a4..0f903bd8 100644 --- a/src/boolean_condition.rs +++ b/src/boolean_condition.rs @@ -89,7 +89,7 @@ impl BooleanCondition { impl DataProvider for BooleanCondition { fn data_ready(&self) -> bool { - true + false } fn get_data(&self) -> Option {