diff options
author | Cristian Maglie <c.maglie@bug.st> | 2015-04-21 18:07:42 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2015-04-21 18:07:42 +0200 |
commit | 9e2fdcc8f46fed5f10b950111d466e20e6e89bc8 (patch) | |
tree | 1340c5c5c55f59649b70df640817e0b4f5c7783c /cores/arduino/Stream.cpp | |
parent | 82eb5692c6dc5a9a64e0c3ca32e8f3fa4346656d (diff) |
Fixed wrong bracket placement (see #3011)
Diffstat (limited to 'cores/arduino/Stream.cpp')
-rw-r--r-- | cores/arduino/Stream.cpp | 5 |
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' |