now im reading proper buffer

This commit is contained in:
Priec
2025-11-18 23:23:33 +01:00
parent 516309aed2
commit 7a8a308620

View File

@@ -155,7 +155,7 @@ pub async fn bridge_usart1_rx_to_usart2_tx(
let n = usart1_rx.read(&mut buf).await;
if n > 0 {
let _ = usart2_tx.write(&buf[..n]).await;
// info!("bridge: USART1 -> USART2 sent {} bytes", n);
info!("Buffer USART1 -> USART2 bytes: {:?}", &buf[..n]);
}
yield_now().await;
}
@@ -171,7 +171,7 @@ pub async fn bridge_usart2_rx_to_usart1_tx(
let n = usart2_rx.read(&mut buf).await;
if n > 0 {
let _ = usart1_tx.write(&buf[..n]).await;
info!("Buffer USART2 -> USART1 bytes: {:?}", &buf[..n]);
// info!("Buffer USART2 -> USART1 bytes: {:?}", &buf[..n]);
}
yield_now().await;
}