right - fixed dtostrf for anything else

This commit is contained in:
ladyada 2015-11-11 12:50:23 -05:00
parent dbc989ac1d
commit 0f2fd58345
1 changed files with 1 additions and 1 deletions

View File

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