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:
Cristian Maglie 2013-05-06 08:52:31 +02:00
parent ed42d95412
commit ccf7eb9a56
1 changed files with 1 additions and 1 deletions

View File

@ -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