File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ SAMD CORE
9
9
* Fixed writing LOW to a digital input pin blocking subsequent digitalRead attempts
10
10
* Fixed digitalWrite() unnecessarily activating the pull-up resistor
11
11
* Wire: Slave writes now use TX buffer
12
+ * Added getTimeout() method to Stream.
12
13
13
14
SAMD CORE 1.6.6 2016.05.19
14
15
Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ class Stream : public Print
66
66
// parsing methods
67
67
68
68
void setTimeout (unsigned long timeout); // sets maximum milliseconds to wait for stream data, default is 1 second
69
-
69
+ unsigned long getTimeout (void ) { return _timeout; }
70
+
70
71
bool find (char *target); // reads data from the stream until the target string is found
71
72
bool find (uint8_t *target) { return find ((char *)target); }
72
73
// returns true if target string is found, false if timed out (see setTimeout)
You can’t perform that action at this time.
0 commit comments