From 05b145146ae5e99ef48341a9971f60d7ec4ee8cb Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Thu, 2 Jul 2015 13:39:33 +0200 Subject: [PATCH] Comment out stringprint(), it is not used This fixes a compiler warning. --- Adafruit_MQTT.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Adafruit_MQTT.cpp b/Adafruit_MQTT.cpp index 557ee06..87fea10 100644 --- a/Adafruit_MQTT.cpp +++ b/Adafruit_MQTT.cpp @@ -38,6 +38,7 @@ void printBuffer(uint8_t *buffer, uint8_t len) { DEBUG_PRINTER.println(); } +/* Not used now, but might be useful in the future static uint8_t *stringprint(uint8_t *p, char *s) { uint16_t len = strlen(s); p[0] = len >> 8; p++; @@ -45,6 +46,7 @@ static uint8_t *stringprint(uint8_t *p, char *s) { memcpy(p, s, len); return p+len; } +*/ static uint8_t *stringprint_P(uint8_t *p, const char *s, uint16_t maxlen=0) { // If maxlen is specified (has a non-zero value) then use it as the maximum