We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e12a79 commit 9ecc150Copy full SHA for 9ecc150
hardware/arduino/avr/cores/arduino/Stream.cpp
@@ -185,7 +185,7 @@ float Stream::parseFloat(char skipChar){
185
read(); // consume the character we got with peek
186
c = timedPeek();
187
}
188
- while( (c >= '0' && c <= '9') || c == '.' || c == skipChar );
+ while( (c >= '0' && c <= '9') || c == '.' && !isFraction || c == skipChar );
189
190
if(isNegative)
191
value = -value;
hardware/arduino/sam/cores/arduino/Stream.cpp
0 commit comments