Skip to content

Commit 5e8df5e

Browse files
committed
Merge branch 'master' of github.com:arduino/Arduino
2 parents 595d7fe + 444ede0 commit 5e8df5e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

hardware/arduino/cores/arduino/Stream.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ readBytesBetween( pre_string, terminator, buffer, length)
3737

3838
class Stream : public Print
3939
{
40-
private:
40+
protected:
4141
unsigned long _timeout; // number of milliseconds to wait for the next char before aborting timed read
4242
unsigned long _startMillis; // used for timeout measurement
4343
int timedRead(); // private method to read stream with timeout

hardware/arduino/cores/arduino/WString.h

+1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ class String
147147
void getBytes(unsigned char *buf, unsigned int bufsize, unsigned int index=0) const;
148148
void toCharArray(char *buf, unsigned int bufsize, unsigned int index=0) const
149149
{getBytes((unsigned char *)buf, bufsize, index);}
150+
const char * c_str() const { return buffer; }
150151

151152
// search
152153
int indexOf( char ch ) const;

0 commit comments

Comments
 (0)