Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions cores/esp32/Stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,11 @@ int Stream::findMulti(struct Stream::MultiTarget *targets, int tCount) {
}

while (1) {
int c = timedRead();
if (c < 0) {
int cc = timedRead();
if (cc < 0) {
return -1;
}
char c = cc;

for (struct MultiTarget *t = targets; t < targets + tCount; ++t) {
// the simple case is if we match, deal with that first.
Expand Down