We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a2e1cd commit 29bfd08Copy full SHA for 29bfd08
1 file changed
cores/arduino/Stream.cpp
@@ -218,7 +218,6 @@ size_t Stream::readBytes(char *buffer, size_t length)
218
219
size_t Stream::readBytesUntil(char terminator, char *buffer, size_t length)
220
{
221
- if (length < 1) return 0;
222
size_t index = 0;
223
while (index < length) {
224
int c = timedRead();
0 commit comments