From 9910ce3685e7bfc9da404f073ff4918a1ce97e24 Mon Sep 17 00:00:00 2001
From: Anton <anton.frappe@outlook.com>
Date: Thu, 11 Mar 2021 16:15:05 +0100
Subject: [PATCH] bare8_1

---
 examples/rtic_bare8.rs | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/examples/rtic_bare8.rs b/examples/rtic_bare8.rs
index b4b18ee..e0903c2 100644
--- a/examples/rtic_bare8.rs
+++ b/examples/rtic_bare8.rs
@@ -11,13 +11,14 @@
 
 use panic_rtt_target as _;
 
-use nb::block;
+//use nb::block;
 
 use stm32f4xx_hal::{
     gpio::{gpioa::PA, Output, PushPull},
     prelude::*,
     serial::{config::Config, Rx, Serial, Tx},
     stm32::USART2,
+    nb::block,
 };
 
 use rtic::app;
@@ -113,31 +114,33 @@ const APP: () = {
 //
 //    What do you receive in `moserial`?
 //
-//    ** your answer here **
+//    a
 //
 //    What do you receive in the RTT terminal?
 //
-//    ** your answer here **
+//    Ok 97
 //
 //    Try sending: "abcd" as a single sequence, don't send the quotation marks, just abcd.
 //
 //    What did you receive in `moserial`?
 //
-//    ** your answer here **
+//    ad
 //
 //    What do you receive in the RTT terminal?
 //
-//    ** your answer here **
+//    Ok 97
+//    Error Overrun
+//    Ok 100
 //
 //    What do you believe to be the problem?
 //
 //    Hint: Look at the code in `idle` what does it do?
 //
-//    ** your answer here **
+//    The buffer is not cleared before another byte is coming in.
 //
 //    Experiment a bit, what is the max length sequence you can receive without errors?
 //
-//    ** your answer here **
+//    2 bytes length
 //
 //    Commit your answers (bare8_1)
 //
-- 
GitLab