You've already forked Adafruit_MQTT_Library
mirror of
https://github.com/adafruit/Adafruit_MQTT_Library.git
synced 2025-06-13 10:01:31 +03:00
dtostrf for other SAMD boards
Changed preprocessor directive to create the dtostrf function whenever it is not defined in order to support more SAMD boards (including MKR1000) without adding more board defines to the ifdef.
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
// SOFTWARE.
|
||||
#include "Adafruit_MQTT.h"
|
||||
|
||||
#ifdef ARDUINO_SAMD_ZERO
|
||||
#ifndef dtostrf
|
||||
static char *dtostrf (double val, signed char width, unsigned char prec, char *sout) {
|
||||
char fmt[20];
|
||||
sprintf(fmt, "%%%d.%df", width, prec);
|
||||
|
Reference in New Issue
Block a user