From ccf7eb9a56345e150fc8141a7c6f7905f7b11940 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Mon, 6 May 2013 08:52:31 +0200 Subject: [PATCH] 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. --- cores/arduino/Stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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