From 9f6e6b49c8d10e1e05c076098cd8fe60f5cf81f8 Mon Sep 17 00:00:00 2001 From: cs161079 Date: Wed, 22 Jan 2020 13:17:03 +0200 Subject: [PATCH] Update v1.1 --- autonomousCar/autonomousCar.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autonomousCar/autonomousCar.ino b/autonomousCar/autonomousCar.ino index c069d04..5f7ca08 100644 --- a/autonomousCar/autonomousCar.ino +++ b/autonomousCar/autonomousCar.ino @@ -124,6 +124,8 @@ void setup() { void serialFlush(){ while(Serial.available() > 0) { char t = Serial.read(); + if(t == '\0') + break; } }