From 29e1dbb8be6beb75604094df5c5e736f7af67f79 Mon Sep 17 00:00:00 2001 From: Chris--A Date: Fri, 19 Jun 2015 13:05:06 +1000 Subject: This commit improves the parsing capability by allowing decimals only prefixed by an '.' character. Previously the preceeding zero must be present: '0.' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cores/arduino/Stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cores/arduino/Stream.h') 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; -- cgit v1.2.3-18-g5258