aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino
diff options
context:
space:
mode:
Diffstat (limited to 'cores/arduino')
-rw-r--r--cores/arduino/Stream.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cores/arduino/Stream.cpp b/cores/arduino/Stream.cpp
index 7e8bf10..f007ce9 100644
--- a/cores/arduino/Stream.cpp
+++ b/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'