1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

fix Stream.read into buffer ignoring every second byte (#8452) (#8453)

This commit is contained in:
Benedikt Eliasson 2022-01-18 15:21:13 +01:00 committed by GitHub
parent 9fcf14f81f
commit f4ef6fd7d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -274,7 +274,7 @@ int Stream::read (uint8_t* buffer, size_t maxLen)
int c = read(); int c = read();
if (c == -1) if (c == -1)
break; break;
buffer[nbread++] = read(); buffer[nbread++] = c;
} }
return nbread; return nbread;
} }