diff options
author | Cristian Maglie <c.maglie@bug.st> | 2012-06-26 00:51:35 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2012-06-26 00:51:35 +0200 |
commit | 79521e1a15f4d8778b07477cf1f61b6c0e74b7b9 (patch) | |
tree | 421853a5f6634228bb601d9ff7506f949095aadd /cores/arduino/Print.cpp | |
parent | 386e059e7e6b4703e800b1b9154d52cd9b280d3e (diff) | |
parent | 2ef2f9d5c78ad4a1d265b7386e13c41d41ba410a (diff) |
Merged upstream Arduino master branch
Diffstat (limited to 'cores/arduino/Print.cpp')
-rwxr-xr-x | cores/arduino/Print.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cores/arduino/Print.cpp b/cores/arduino/Print.cpp index e541a6c..711251c 100755 --- a/cores/arduino/Print.cpp +++ b/cores/arduino/Print.cpp @@ -226,6 +226,9 @@ size_t Print::printFloat(double number, uint8_t digits) { size_t n = 0; + if (isnan(number)) return print("nan"); + if (isinf(number)) return print("inf"); + // Handle negative numbers if (number < 0.0) { |