Skip to content
Snippets Groups Projects
Commit d44c5db8 authored by Ridge's avatar Ridge
Browse files

bare8_3

parent 238f1c41
No related branches found
No related tags found
No related merge requests found
...@@ -78,17 +78,19 @@ const APP: () = { ...@@ -78,17 +78,19 @@ const APP: () = {
loop { loop {
match block!(rx.read()) { match block!(rx.read()) {
Ok(byte) => { Ok(byte) => {
// iprintln!(stim, "Ok {:?}", byte); iprintln!(stim, "Ok {:?}", byte);
tx.write(byte).unwrap(); tx.write(byte).unwrap();
received = received + 1; received = received + 1;
iprintln!(stim, "Received: {:?}", received);
} }
Err(err) => { Err(err) => {
// iprintln!(stim, "Error {:?}", err); iprintln!(stim, "Error {:?}", err);
errors = errors + 1; errors = errors + 1;
iprintln!(stim, "Errors: {:?}", errors);
} }
} }
iprintln!(stim, "Received: {:?}", received); // iprintln!(stim, "Received: {:?}", received);
iprintln!(stim, "Errors: {:?}", errors); // iprintln!(stim, "Errors: {:?}", errors);
} }
} }
}; };
...@@ -134,7 +136,7 @@ const APP: () = { ...@@ -134,7 +136,7 @@ const APP: () = {
// 3. The added tracing, how did that effect the performance, // 3. The added tracing, how did that effect the performance,
// (are you know loosing more data)? // (are you know loosing more data)?
// //
// ** your answer here ** //
// //
// Commit your answer (bare8_3) // Commit your answer (bare8_3)
// //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment