From a7afdf40baf0598a97dbfeaf7d9bfcce93df74fd Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sun, 12 Feb 2012 19:52:03 -0500 Subject: prog_char -> char PROGMEM in Print.cpp http://code.google.com/p/arduino/issues/detail?id=795 --- cores/arduino/Print.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cores/arduino/Print.cpp') diff --git a/cores/arduino/Print.cpp b/cores/arduino/Print.cpp index ff9b154..e541a6c 100755 --- a/cores/arduino/Print.cpp +++ b/cores/arduino/Print.cpp @@ -41,7 +41,7 @@ size_t Print::write(const uint8_t *buffer, size_t size) size_t Print::print(const __FlashStringHelper *ifsh) { - const prog_char *p = (const prog_char *)ifsh; + const char PROGMEM *p = (const char PROGMEM *)ifsh; size_t n = 0; while (1) { unsigned char c = pgm_read_byte(p++); -- cgit v1.2.3-18-g5258 From 3436ca97cbccd9068c79bf201cb367de60789f37 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Mon, 4 Jun 2012 23:30:41 -0400 Subject: Printing NaN values as "nan" in printFloat(). http://code.google.com/p/arduino/issues/detail?id=946 --- 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 e541a6c..98969f5 100755 --- a/cores/arduino/Print.cpp +++ b/cores/arduino/Print.cpp @@ -226,6 +226,8 @@ size_t Print::printFloat(double number, uint8_t digits) { size_t n = 0; + if (isnan(number)) return print("nan"); + // Handle negative numbers if (number < 0.0) { -- cgit v1.2.3-18-g5258 From 2ef2f9d5c78ad4a1d265b7386e13c41d41ba410a Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sat, 23 Jun 2012 10:37:35 -0500 Subject: Print "inf" for infinite floating point numbers (using isinf()). http://code.google.com/p/arduino/issues/detail?id=961 --- cores/arduino/Print.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'cores/arduino/Print.cpp') 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) -- cgit v1.2.3-18-g5258