Skip to content

Commit 99f2a27

Browse files
committed
Stream "_timeout" field and related methods are now protected instead of private.
This allows better optimization on classes that extends Stream without losing timeout capabilities.
1 parent 55ade2d commit 99f2a27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: hardware/arduino/cores/arduino/Stream.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ readBytesBetween( pre_string, terminator, buffer, length)
3737

3838
class Stream : public Print
3939
{
40-
private:
40+
protected:
4141
unsigned long _timeout; // number of milliseconds to wait for the next char before aborting timed read
4242
unsigned long _startMillis; // used for timeout measurement
4343
int timedRead(); // private method to read stream with timeout

0 commit comments

Comments
 (0)