8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bfa2ae commit ad2b51eCopy full SHA for ad2b51e
cores/esp8266/Stream.cpp
@@ -33,6 +33,8 @@ int Stream::timedRead() {
33
c = read();
34
if(c >= 0)
35
return c;
36
+ if(_timeout == 0)
37
+ return -1;
38
yield();
39
} while(millis() - _startMillis < _timeout);
40
return -1; // -1 indicates timeout
@@ -46,6 +48,8 @@ int Stream::timedPeek() {
46
48
c = peek();
47
49
50
51
52
53
54
55
@@ -254,4 +258,3 @@ String Stream::readStringUntil(char terminator) {
254
258
}
255
259
return ret;
256
260
257
-
0 commit comments