Skip to content

Commit

Permalink
Update comments to reflect Stream functions changed from private to p…
Browse files Browse the repository at this point in the history
…rotected

These functions were changed from private to protected in 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#6146.
  • Loading branch information
per1234 authored and cmaglie committed Jul 6, 2017
1 parent e180b70 commit 9411fa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hardware/arduino/avr/cores/arduino/Stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions hardware/arduino/avr/cores/arduino/Stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9411fa8

Please sign in to comment.