1
0
mirror of https://github.com/adafruit/Adafruit_MQTT_Library.git synced 2025-07-08 14:01:58 +03:00

bumping library for compilation on m4 targets (#151)

This commit is contained in:
brentrubell
2019-04-16 11:48:54 -04:00
committed by GitHub
parent 493a1cf590
commit 9eb37efa1c

View File

@ -21,7 +21,7 @@
// SOFTWARE.
#include "Adafruit_MQTT.h"
#if defined(ARDUINO_SAMD_ZERO) || defined(ARDUINO_SAMD_MKR1000)
#if defined(ARDUINO_SAMD_ZERO) || defined(ARDUINO_SAMD_MKR1000) || defined(ARDUINO_ARCH_SAMD)
static char *dtostrf (double val, signed char width, unsigned char prec, char *sout) {
char fmt[20];
sprintf(fmt, "%%%d.%df", width, prec);