From 194ae21261cb0fa07900a3b70748c3abd59fc7b8 Mon Sep 17 00:00:00 2001 From: Andelf Date: Wed, 1 May 2024 07:30:30 +0800 Subject: [PATCH] fix(demo): minor api update --- examples/ch32v203/src/bin/uart.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ch32v203/src/bin/uart.rs b/examples/ch32v203/src/bin/uart.rs index 755da7c..0381109 100644 --- a/examples/ch32v203/src/bin/uart.rs +++ b/examples/ch32v203/src/bin/uart.rs @@ -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;