diff options
author | Chris--A <chris@genx.biz> | 2015-06-19 13:05:06 +1000 |
---|---|---|
committer | Sandeep Mistry <s.mistry@arduino.cc> | 2015-11-23 15:46:23 -0500 |
commit | 29e1dbb8be6beb75604094df5c5e736f7af67f79 (patch) | |
tree | ed4c4caad099b3123ebb29311f4ba9960496f82a /cores/arduino/Stream.h | |
parent | b15e001b0d1b78caf3475c004d993fda58fcebef (diff) |
This commit improves the parsing capability by allowing decimals only
prefixed by an '.' character. Previously the preceeding zero must be
present: '0.'
Diffstat (limited to 'cores/arduino/Stream.h')
-rw-r--r-- | cores/arduino/Stream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/Stream.h b/cores/arduino/Stream.h index 15f6761..4bc0036 100644 --- a/cores/arduino/Stream.h +++ b/cores/arduino/Stream.h @@ -42,7 +42,7 @@ class Stream : public Print 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 + int peekNextDigit( bool detectDecimal ); // returns the next numeric digit in the stream or -1 if timeout public: virtual int available() = 0; |