aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/Stream.cpp
diff options
context:
space:
mode:
authorDavid Madison <dmadison@users.noreply.github.com>2020-02-01 04:25:52 -0500
committerDavid Madison <dmadison@users.noreply.github.com>2020-02-01 04:25:52 -0500
commit923b4441fed740c5ff1e42bb8f2f58ea87d4eaf7 (patch)
tree39aad14af9ba55cc9f26f2920f6ff873552f4c62 /cores/arduino/Stream.cpp
parent59dd6085ec8ec0a5438c1019e982fefb77f485d3 (diff)
parent0e7fae85bdfbab43242374c0289cdd806d13b0bc (diff)
Merge ArduinoCore-avr Release 1.8.2
Diffstat (limited to 'cores/arduino/Stream.cpp')
-rw-r--r--cores/arduino/Stream.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/cores/arduino/Stream.cpp b/cores/arduino/Stream.cpp
index d284631..9eff663 100644
--- a/cores/arduino/Stream.cpp
+++ b/cores/arduino/Stream.cpp
@@ -218,7 +218,6 @@ size_t Stream::readBytes(char *buffer, size_t length)
size_t Stream::readBytesUntil(char terminator, char *buffer, size_t length)
{
- if (length < 1) return 0;
size_t index = 0;
while (index < length) {
int c = timedRead();