From 854ee68ff5059926e172bcd78ee77d6b7f9970ec Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Fri, 29 May 2015 13:37:03 +0200 Subject: [PATCH] [ES] Fixed comparison MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-óff-by: Jim Martens --- es/blatt3/uebung3-4/uebung3-4.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es/blatt3/uebung3-4/uebung3-4.ino b/es/blatt3/uebung3-4/uebung3-4.ino index 6651c2f..eafdb54 100644 --- a/es/blatt3/uebung3-4/uebung3-4.ino +++ b/es/blatt3/uebung3-4/uebung3-4.ino @@ -94,7 +94,7 @@ void loop() { bool readable = true; while (readable) { currentChar = Serial.read(); - readable = (currentChar == -1); + readable = (currentChar != -1); command[i] = currentChar; i++; }