Skip to content

Commit 40a0d58

Browse files
committed
Add getTimeout() method
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 9ce596f commit 40a0d58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/arduino/Stream.h

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class Stream : public Print
6666
// parsing methods
6767

6868
void setTimeout(unsigned long timeout); // sets maximum milliseconds to wait for stream data, default is 1 second
69+
unsigned long getTimeout(void) { return _timeout; }
6970

7071
bool find(char *target); // reads data from the stream until the target string is found
7172
bool find(uint8_t *target) { return find ((char *)target); }

0 commit comments

Comments
 (0)