Skip to content

Commit

Permalink
Aerugo: Fixed BooleanCondition bug resulting in invalid execution con…
Browse files Browse the repository at this point in the history
…ditions

also removed unneeded loop from FizzBuzz SAMV71 example
  • Loading branch information
SteelPh0enix committed Aug 21, 2023
1 parent 99ba3a9 commit 66d86db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions examples/samv71-fizz-buzz/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use aerugo::{
TaskletConfig, TaskletStorage, AERUGO,
};

use cortex_m::asm;
use rtt::{rprint, rprintln};
use runtime::entry;

Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -203,7 +198,7 @@ fn main() -> ! {

let done_config = TaskletConfig {
name: "Done",
priority: 4,
..Default::default()
};

AERUGO
Expand Down
2 changes: 1 addition & 1 deletion src/boolean_condition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl BooleanCondition {

impl DataProvider<bool> for BooleanCondition {
fn data_ready(&self) -> bool {
true
false
}

fn get_data(&self) -> Option<bool> {
Expand Down

0 comments on commit 66d86db

Please sign in to comment.