diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2011-10-02 09:44:21 -0400 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2011-10-02 09:44:21 -0400 |
commit | 075bb009b9bf48169921e1a43329ea49c15480bc (patch) | |
tree | 2c65022b72dffb353c5bae9dba04381e2d016a1c /cores/arduino/Stream.h | |
parent | e0c524b05777af20937f48d606ab44cc8f42d2dd (diff) |
Fixing warnings in Stream (Paul Stoffregen)
http://code.google.com/p/arduino/issues/detail?id=208
Diffstat (limited to 'cores/arduino/Stream.h')
-rw-r--r-- | cores/arduino/Stream.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cores/arduino/Stream.h b/cores/arduino/Stream.h index 3c6d025..8f2de1e 100644 --- a/cores/arduino/Stream.h +++ b/cores/arduino/Stream.h @@ -38,8 +38,8 @@ readBytesBetween( pre_string, terminator, buffer, length) class Stream : public Print { private: - long _timeout; // number of milliseconds to wait for the next char before aborting timed read - long _startMillis; // used for timeout measurement + 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 int timedPeek(); // private method to peek stream with timeout int peekNextDigit(); // returns the next numeric digit in the stream or -1 if timeout @@ -54,7 +54,7 @@ class Stream : public Print // parsing methods - void setTimeout(long timeout); // sets maximum milliseconds to wait for stream data, default is 1 second + void setTimeout(unsigned long timeout); // sets maximum milliseconds to wait for stream data, default is 1 second bool find(char *target); // reads data from the stream until the target string is found // returns true if target string is found, false if timed out (see setTimeout) |