Skip to content

Commit f22b9cb

Browse files
per1234cmaglie
authored andcommitted
Update comments to reflect Stream functions changed from private to protected
These functions were changed from private to protected in arduino/Arduino@99f2a27 but the comments were not updated at that time. In conjunction with equivalent pull requests to Arduino SAM Boards and Arduino SAMD Boards, solves arduino/Arduino#6146.
1 parent cfcd441 commit f22b9cb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: cores/arduino/Stream.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
#define PARSE_TIMEOUT 1000 // default number of milli-seconds to wait
2929

30-
// private method to read stream with timeout
30+
// protected method to read stream with timeout
3131
int Stream::timedRead()
3232
{
3333
int c;
@@ -39,7 +39,7 @@ int Stream::timedRead()
3939
return -1; // -1 indicates timeout
4040
}
4141

42-
// private method to peek stream with timeout
42+
// protected method to peek stream with timeout
4343
int Stream::timedPeek()
4444
{
4545
int c;

Diff for: cores/arduino/Stream.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ class Stream : public Print
5151
protected:
5252
unsigned long _timeout; // number of milliseconds to wait for the next char before aborting timed read
5353
unsigned long _startMillis; // used for timeout measurement
54-
int timedRead(); // private method to read stream with timeout
55-
int timedPeek(); // private method to peek stream with timeout
54+
int timedRead(); // read stream with timeout
55+
int timedPeek(); // peek stream with timeout
5656
int peekNextDigit(LookaheadMode lookahead, bool detectDecimal); // returns the next numeric digit in the stream or -1 if timeout
5757

5858
public:

0 commit comments

Comments
 (0)