Skip to content

Commit

Permalink
fix Stream.read into buffer ignoring every second byte (esp8266#8452)
Browse files Browse the repository at this point in the history
  • Loading branch information
INemesisI committed Jan 18, 2022
1 parent 9fcf14f commit 6e66140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/esp8266/Stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ int Stream::read (uint8_t* buffer, size_t maxLen)
int c = read();
if (c == -1)
break;
buffer[nbread++] = read();
buffer[nbread++] = c;
}
return nbread;
}

0 comments on commit 6e66140

Please sign in to comment.