From 075bb009b9bf48169921e1a43329ea49c15480bc Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sun, 2 Oct 2011 09:44:21 -0400 Subject: Fixing warnings in Stream (Paul Stoffregen) http://code.google.com/p/arduino/issues/detail?id=208 --- cores/arduino/Stream.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cores/arduino/Stream.h') 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) -- cgit v1.2.3-18-g5258