1
0
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:
Cristian Maglie 2013-05-06 08:52:31 +02:00
parent 55ade2daeb
commit 99f2a27553

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