Skip to content

Commit

Permalink
fix(demo): minor api update
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Apr 30, 2024
1 parent 578e091 commit 194ae21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ch32v203/src/bin/uart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async fn main(spawner: Spawner) -> ! {
let mut led = Output::new(p.PB8, Level::Low, Default::default());

let mut cfg = usart::Config::default();
let mut uart = UartTx::new(p.USART1, p.PA9, cfg).unwrap();
let mut uart = UartTx::new_blocking(p.USART1, p.PA9, cfg).unwrap();

loop {
Timer::after_millis(1000).await;
Expand Down

0 comments on commit 194ae21

Please sign in to comment.