working async uart properly well
This commit is contained in:
@@ -24,7 +24,6 @@ async fn receive_uart(mut uart: Uart<'static, Async>) {
|
|||||||
unwrap!(uart.write(&buf).await);
|
unwrap!(uart.write(&buf).await);
|
||||||
unwrap!(uart.write(b"a\r\n").await);
|
unwrap!(uart.write(b"a\r\n").await);
|
||||||
info!("uart received {}", buf[0]);
|
info!("uart received {}", buf[0]);
|
||||||
Timer::after(Duration::from_secs(1)).await;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user