mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +01:00
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
55ade2daeb
commit
99f2a27553
@ -37,7 +37,7 @@ readBytesBetween( pre_string, terminator, buffer, length)
|
||||
|
||||
class Stream : public Print
|
||||
{
|
||||
private:
|
||||
protected:
|
||||
unsigned long _timeout; // number of milliseconds to wait for the next char before aborting timed read
|
||||
unsigned long _startMillis; // used for timeout measurement
|
||||
int timedRead(); // private method to read stream with timeout
|
||||
|
Loading…
x
Reference in New Issue
Block a user