Skip to content
Snippets Groups Projects
Commit 0a35b553 authored by Sandeep Mistry's avatar Sandeep Mistry
Browse files

Add getTimeout accessor method to Stream

parent 40e5a4fc
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ SAMD CORE
* Fixed writing LOW to a digital input pin blocking subsequent digitalRead attempts
* Fixed digitalWrite() unnecessarily activating the pull-up resistor
* Wire: Slave writes now use TX buffer
* Added getTimeout() method to Stream.
SAMD CORE 1.6.6 2016.05.19
......
......@@ -66,7 +66,8 @@ class Stream : public Print
// parsing methods
void setTimeout(unsigned long timeout); // sets maximum milliseconds to wait for stream data, default is 1 second
unsigned long getTimeout(void) { return _timeout; }
bool find(char *target); // reads data from the stream until the target string is found
bool find(uint8_t *target) { return find ((char *)target); }
// returns true if target string is found, false if timed out (see setTimeout)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment