Fix example after swapping bufferedUart rx and tx in split fn
This commit is contained in:
parent
f733071908
commit
d1207706c0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue