From 037020e938f7dde469f828764976635a69b74a3e Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Thu, 18 Oct 2012 18:47:50 +0200 Subject: Merged latest changes in AVR arduino core --- cores/arduino/Print.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cores/arduino/Print.cpp') 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) -- cgit v1.2.3-18-g5258