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.
This commit is contained in:
parent
ed42d95412
commit
ccf7eb9a56
|
@ -37,7 +37,7 @@ readBytesBetween( pre_string, terminator, buffer, length)
|
||||||
|
|
||||||
class Stream : public Print
|
class Stream : public Print
|
||||||
{
|
{
|
||||||
private:
|
protected:
|
||||||
unsigned long _timeout; // number of milliseconds to wait for the next char before aborting timed read
|
unsigned long _timeout; // number of milliseconds to wait for the next char before aborting timed read
|
||||||
unsigned long _startMillis; // used for timeout measurement
|
unsigned long _startMillis; // used for timeout measurement
|
||||||
int timedRead(); // private method to read stream with timeout
|
int timedRead(); // private method to read stream with timeout
|
||||||
|
|
Loading…
Reference in New Issue