From 0d1f31da5d877d73318ddcb4c9857109c0c60584 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Thu, 7 Nov 2019 22:49:53 -0500 Subject: [PATCH 1/2] Add support for float formatting on Arduino UNO Wifi Rev. 2 --- src/AdafruitIO_Data.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AdafruitIO_Data.cpp b/src/AdafruitIO_Data.cpp index b9878566..a7d3b1cb 100644 --- a/src/AdafruitIO_Data.cpp +++ b/src/AdafruitIO_Data.cpp @@ -180,7 +180,7 @@ void AdafruitIO_Data::setValue(float value, double lat, double lon, double ele, { memset(_value, 0, AIO_DATA_LENGTH); - #if defined(ARDUINO_ARCH_AVR) + #if defined(ARDUINO_ARCH_AVR) || defined(ARDUINO_ARCH_MEGAAVR) // Use avrlibc dtostre function on AVR platforms. dtostre(value, _value, precision, 0); #elif defined(ESP8266) @@ -199,7 +199,7 @@ void AdafruitIO_Data::setValue(double value, double lat, double lon, double ele, { memset(_value, 0, AIO_DATA_LENGTH); - #if defined(ARDUINO_ARCH_AVR) + #if defined(ARDUINO_ARCH_AVR) || defined(ARDUINO_ARCH_MEGAAVR) // Use avrlibc dtostre function on AVR platforms. dtostre(value, _value, precision, 0); #elif defined(ESP8266) @@ -429,7 +429,7 @@ char* AdafruitIO_Data::charFromDouble(double d, int precision) { memset(_double_buffer, 0, sizeof(_double_buffer)); - #if defined(ARDUINO_ARCH_AVR) + #if defined(ARDUINO_ARCH_AVR) || defined(ARDUINO_ARCH_MEGAAVR) // Use avrlibc dtostre function on AVR platforms. dtostre(d, _double_buffer, 10, 0); #elif defined(ESP8266) From fddf6d20d427a22f94b15a8f54bddc8455df4083 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Wed, 13 Nov 2019 08:13:05 -0500 Subject: [PATCH 2/2] Bumped version to 3.2.3 --- library.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.properties b/library.properties index 9786efaa..9f3674ec 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Adafruit IO Arduino -version=3.2.2 +version=3.2.3 author=Adafruit maintainer=Adafruit sentence=Arduino library to access Adafruit IO.