Added ARDUINO_STM32F2_FEATHER check

This commit is contained in:
Kevin Townsend 2015-12-03 11:49:10 +01:00
parent 936c6b25e1
commit bb7cdb5059
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -24,7 +24,7 @@
#include "Arduino.h"
#ifdef ARDUINO_SAMD_ZERO
#if defined(ARDUINO_SAMD_ZERO) || defined(ARDUINO_STM32F2_FEATHER)
#define strncpy_P(dest, src, len) strncpy((dest), (src), (len))
#define strncasecmp_P(f1, f2, len) strncasecmp((f1), (f2), (len))
#endif