Skip to content

Commit c4a3c64

Browse files
committed
Make it read bytes properly
1 parent f429756 commit c4a3c64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ async fn main(spawner: Spawner) {
155155
Timer::after(Duration::from_secs(1)).await;
156156
}
157157

158-
let count = uart0.read(&mut buffer).unwrap();
158+
let count = uart0.read_buffered_bytes(&mut buffer).unwrap();
159159

160160
// If there were no bytes read, don't try to use them
161161
if count == 0 {

0 commit comments

Comments
 (0)