Skip to content

Commit

Permalink
Use wfi in loop{}
Browse files Browse the repository at this point in the history
See #408 for reasoning why this is sensible.
  • Loading branch information
jannic authored Aug 3, 2022
1 parent 42d8b8e commit 962742c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion boards/rp-pico/examples/pico_display_pack_2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,7 @@ fn main() -> ! {
display.clear(Rgb565::BLACK).unwrap();
circle.draw(&mut display).unwrap();

loop {}
loop {
cortex_m::asm::wfi();
}
}

0 comments on commit 962742c

Please sign in to comment.