1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-28 09:24:14 +01:00

Update comments to reflect Stream functions changed from private to protected

These functions were changed from private to protected in 99f2a27553 but the comments were not updated at that time.

In conjunction with equivalent pull requests to Arduino SAM Boards and Arduino SAMD Boards, solves https://github.com/arduino/Arduino/issues/6146.
This commit is contained in:
per1234 2017-07-06 10:16:17 -07:00 committed by Cristian Maglie
parent e180b7037d
commit 9411fa8c2b
2 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@
#define PARSE_TIMEOUT 1000 // default number of milli-seconds to wait
// private method to read stream with timeout
// protected method to read stream with timeout
int Stream::timedRead()
{
int c;
@ -39,7 +39,7 @@ int Stream::timedRead()
return -1; // -1 indicates timeout
}
// private method to peek stream with timeout
// protected method to peek stream with timeout
int Stream::timedPeek()
{
int c;

View File

@ -51,8 +51,8 @@ class Stream : public Print
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
int timedPeek(); // private method to peek stream with timeout
int timedRead(); // read stream with timeout
int timedPeek(); // peek stream with timeout
int peekNextDigit(LookaheadMode lookahead, bool detectDecimal); // returns the next numeric digit in the stream or -1 if timeout
public: