right - fixed dtostrf for anything else
This commit is contained in:
parent
dbc989ac1d
commit
0f2fd58345
@ -21,7 +21,7 @@
|
|||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
#include "Adafruit_MQTT.h"
|
#include "Adafruit_MQTT.h"
|
||||||
|
|
||||||
#ifndef dtostrf
|
#ifdef ARDUINO_SAMD_ZERO
|
||||||
static char *dtostrf (double val, signed char width, unsigned char prec, char *sout) {
|
static char *dtostrf (double val, signed char width, unsigned char prec, char *sout) {
|
||||||
char fmt[20];
|
char fmt[20];
|
||||||
sprintf(fmt, "%%%d.%df", width, prec);
|
sprintf(fmt, "%%%d.%df", width, prec);
|
||||||
|
Loading…
Reference in New Issue
Block a user