aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/Print.cpp
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2012-10-18 18:47:50 +0200
committerCristian Maglie <c.maglie@bug.st>2012-10-18 18:47:50 +0200
commit037020e938f7dde469f828764976635a69b74a3e (patch)
tree4677e869e5ceb7db0c076f32eb830b3e86e75dfc /cores/arduino/Print.cpp
parent6a45ba48ab1f2d0a168373a02ba7fded40a3470e (diff)
Merged latest changes in AVR arduino core
Diffstat (limited to 'cores/arduino/Print.cpp')
-rwxr-xr-xcores/arduino/Print.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cores/arduino/Print.cpp b/cores/arduino/Print.cpp
index 711251c..53961ec 100755
--- a/cores/arduino/Print.cpp
+++ b/cores/arduino/Print.cpp
@@ -228,6 +228,8 @@ size_t Print::printFloat(double number, uint8_t digits)
if (isnan(number)) return print("nan");
if (isinf(number)) return print("inf");
+ if (number > 4294967040.0) return print ("ovf"); // constant determined empirically
+ if (number <-4294967040.0) return print ("ovf"); // constant determined empirically
// Handle negative numbers
if (number < 0.0)