examples: Consistently use unwrap! in favor of .unwrap()
Unfortunately errors from `embedded_graphics` and `core` doesn't provide the necessary instances currently.
This commit is contained in:
committed by
Dario Nieuwenhuis
parent
36402b5487
commit
f4950c4449
@@ -24,7 +24,7 @@ fn main() -> ! {
|
||||
let button = Input::new(p.PC13, Pull::Up);
|
||||
|
||||
loop {
|
||||
if button.is_high().unwrap() {
|
||||
if unwrap!(button.is_high()) {
|
||||
info!("high");
|
||||
} else {
|
||||
info!("low");
|
||||
|
||||
Reference in New Issue
Block a user