fix esp, remove debug
This commit is contained in:
parent
7886b7243c
commit
bdd08d443e
@ -30,6 +30,21 @@ static char *dtostrf (double val, signed char width, unsigned char prec, char *s
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(ESP8266)
|
||||||
|
int strncasecmp(const char * str1, const char * str2, int len) {
|
||||||
|
int d = 0;
|
||||||
|
while(len--) {
|
||||||
|
int c1 = tolower(*str1++);
|
||||||
|
int c2 = tolower(*str2++);
|
||||||
|
if(((d = c1 - c2) != 0) || (c2 == '\0')) {
|
||||||
|
return d;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
void printBuffer(uint8_t *buffer, uint16_t len) {
|
void printBuffer(uint8_t *buffer, uint16_t len) {
|
||||||
DEBUG_PRINTER.print('\t');
|
DEBUG_PRINTER.print('\t');
|
||||||
for (uint16_t i=0; i<len; i++) {
|
for (uint16_t i=0; i<len; i++) {
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
#define ADAFRUIT_MQTT_VERSION_PATCH 0
|
#define ADAFRUIT_MQTT_VERSION_PATCH 0
|
||||||
|
|
||||||
// Uncomment/comment to turn on/off debug output messages.
|
// Uncomment/comment to turn on/off debug output messages.
|
||||||
#define MQTT_DEBUG
|
//#define MQTT_DEBUG
|
||||||
// Uncomment/comment to turn on/off error output messages.
|
// Uncomment/comment to turn on/off error output messages.
|
||||||
#define MQTT_ERROR
|
#define MQTT_ERROR
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user