Fix example after swapping bufferedUart rx and tx in split fn

This commit is contained in:
Mathias 2024-07-17 12:07:58 +02:00
parent f733071908
commit d1207706c0

View File

@ -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)));