Skip to content
Snippets Groups Projects
Commit 56229e45 authored by Anton's avatar Anton
Browse files

oscilloscope things

parent 9910ce36
No related branches found
No related tags found
No related merge requests found
......@@ -71,15 +71,21 @@ const APP: () = {
let rx = cx.resources.RX;
let tx = cx.resources.TX;
let mut recv = 0;
let mut errors = 0;
loop {
match block!(rx.read()) {
Ok(byte) => {
rprintln!("Ok {:?}", byte);
recv += 1;
tx.write(byte).unwrap();
}
Err(err) => {
errors += 1;
rprintln!("Error {:?}", err);
}
rprintln!("Ok:s {:?}, Errs {:?}", recv,errors);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment