now im reading proper buffer
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user