stm32f4: Use unwrap! where possible

This commit is contained in:
Ben Gamari
2021-07-31 12:26:12 -04:00
committed by Dario Nieuwenhuis
parent f4950c4449
commit e44acd0d56
2 changed files with 14 additions and 18 deletions

View File

@ -31,7 +31,7 @@ fn main() -> ! {
let mut buf = [0u8; 1];
loop {
unwrap!(usart.read_blocking(&mut buf).unwbrap());
unwrap!(usart.bwrite_all(&buf).unwrap());
unwrap!(usart.read_blocking(&mut buf));
unwrap!(usart.bwrite_all(&buf));
}
}