mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 00:02:28 +00:00
Fix example after swapping bufferedUart rx and tx in split fn
This commit is contained in:
parent
f733071908
commit
d1207706c0
@ -31,7 +31,7 @@ async fn main(spawner: Spawner) {
|
||||
static RX_BUF: StaticCell<[u8; 16]> = StaticCell::new();
|
||||
let rx_buf = &mut RX_BUF.init([0; 16])[..];
|
||||
let uart = BufferedUart::new(uart, Irqs, tx_pin, rx_pin, tx_buf, rx_buf, Config::default());
|
||||
let (rx, mut tx) = uart.split();
|
||||
let (mut tx, rx) = uart.split();
|
||||
|
||||
unwrap!(spawner.spawn(reader(rx)));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user