From 35fc66c23d4f5c6dd12faddaa063f844eb2fc103 Mon Sep 17 00:00:00 2001
From: Cristian Maglie <c.maglie@bug.st>
Date: Tue, 21 Apr 2015 18:07:42 +0200
Subject: [PATCH] Fixed wrong bracket placement (see #3011)

---
 hardware/arduino/avr/cores/arduino/Stream.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/hardware/arduino/avr/cores/arduino/Stream.cpp b/hardware/arduino/avr/cores/arduino/Stream.cpp
index 7e8bf10e0..f007ce920 100644
--- a/hardware/arduino/avr/cores/arduino/Stream.cpp
+++ b/hardware/arduino/avr/cores/arduino/Stream.cpp
@@ -268,8 +268,9 @@ int Stream::findMulti( struct Stream::MultiTarget *targets, int tCount) {
       if (c == t->str[t->index]) {
         if (++t->index == t->len)
           return t - targets;
-      } else
-        continue;
+        else
+          continue;
+      }
 
       // if not we need to walk back and see if we could have matched further
       // down the stream (ie '1112' doesn't match the first position in '11112'