From c9bef950dee2264c1995022cd9af6a783a846e1a Mon Sep 17 00:00:00 2001
From: Josef Utbult <josutb-7@student.ltu.se>
Date: Tue, 23 Mar 2021 14:07:01 +0100
Subject: [PATCH] bare8_1

---
 examples/rtic_bare8.rs | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/examples/rtic_bare8.rs b/examples/rtic_bare8.rs
index b4b18ee..36aee16 100644
--- a/examples/rtic_bare8.rs
+++ b/examples/rtic_bare8.rs
@@ -11,11 +11,11 @@
 
 use panic_rtt_target as _;
 
-use nb::block;
+use stm32f4xx_hal::nb::block;
 
 use stm32f4xx_hal::{
     gpio::{gpioa::PA, Output, PushPull},
-    prelude::*,
+    prelude::*, 
     serial::{config::Config, Rx, Serial, Tx},
     stm32::USART2,
 };
@@ -113,31 +113,35 @@ const APP: () = {
 //
 //    What do you receive in `moserial`?
 //
-//    ** your answer here **
+//    An a
 //
 //    What do you receive in the RTT terminal?
 //
-//    ** your answer here **
+//      init
+//      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
+//      Ok 98
+//      Error Overrun
 //
 //    What do you believe to be the problem?
 //
 //    Hint: Look at the code in `idle` what does it do?
 //
-//    ** your answer here **
+//      I guess it has to do with the fact that the program only handles blocks of data and gets an overrun error when there is to 
+//      many bytes transmitted at once (more than 4).
 //
 //    Experiment a bit, what is the max length sequence you can receive without errors?
 //
-//    ** your answer here **
+//      It seems to be two characters, aka 2 bytes
 //
 //    Commit your answers (bare8_1)
 //
-- 
GitLab