1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +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

View File

@ -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;
}