mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +01:00
Merge branch 'master' of github.com:arduino/Arduino
This commit is contained in:
commit
5e8df5ec88
@ -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
|
||||
|
@ -147,6 +147,7 @@ public:
|
||||
void getBytes(unsigned char *buf, unsigned int bufsize, unsigned int index=0) const;
|
||||
void toCharArray(char *buf, unsigned int bufsize, unsigned int index=0) const
|
||||
{getBytes((unsigned char *)buf, bufsize, index);}
|
||||
const char * c_str() const { return buffer; }
|
||||
|
||||
// search
|
||||
int indexOf( char ch ) const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user