diff options
author | Cristian Maglie <c.maglie@bug.st> | 2013-05-06 08:52:31 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2013-05-06 08:52:31 +0200 |
commit | ccf7eb9a56345e150fc8141a7c6f7905f7b11940 (patch) | |
tree | 2fcbc8d22a663add001edc5b7f24eeccd5af36ab /cores | |
parent | ed42d9541213a5e37fe0151dee89868d5c502305 (diff) |
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.
Diffstat (limited to 'cores')
-rw-r--r-- | cores/arduino/Stream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/Stream.h b/cores/arduino/Stream.h index 58bbf75..007b4bc 100644 --- a/cores/arduino/Stream.h +++ b/cores/arduino/Stream.h @@ -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 |