aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino
diff options
context:
space:
mode:
Diffstat (limited to 'cores/arduino')
-rwxr-xr-xcores/arduino/Print.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/cores/arduino/Print.cpp b/cores/arduino/Print.cpp
index 98969f5..711251c 100755
--- a/cores/arduino/Print.cpp
+++ b/cores/arduino/Print.cpp
@@ -227,6 +227,7 @@ 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)