mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
parent
9fcf14f81f
commit
f4ef6fd7d8
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user