1
0
mirror of https://github.com/adafruit/Adafruit_MQTT_Library.git synced 2025-06-13 10:01:31 +03:00

essentially, add Zero support by shimming in the missing functions

This commit is contained in:
ladyada
2015-11-11 10:22:26 -05:00
parent 03c1a2d07b
commit dbc989ac1d
2 changed files with 14 additions and 4 deletions

View File

@ -21,6 +21,14 @@
// SOFTWARE.
#include "Adafruit_MQTT.h"
#ifndef dtostrf
static char *dtostrf (double val, signed char width, unsigned char prec, char *sout) {
char fmt[20];
sprintf(fmt, "%%%d.%df", width, prec);
sprintf(sout, fmt, val);
return sout;
}
#endif
void printBuffer(uint8_t *buffer, uint8_t len) {
for (uint8_t i=0; i<len; i++) {