Debugovaci mako

This commit is contained in:
Pavel Brychta 2022-06-08 13:01:10 +02:00
parent 36e0ab5f3a
commit 66cd08894e

View File

@ -23,10 +23,12 @@
# define SETHOSTNAME(a) WiFi.setHostname(a)
#endif
#ifdef DEBUG_ESP_PORT
# define DEBUG_MSG(_1, ...) DEBUG_ESP_PORT.printf_P(PSTR(_1), ##__VA_ARGS__)
#else
# define DEBUG_MSG(...)
#ifndef DEBUG_MSG
# ifdef DEBUG_ESP_PORT
# define DEBUG_MSG(_1, ...) DEBUG_ESP_PORT.printf_P(PSTR(_1), ##__VA_ARGS__)
# else
# define DEBUG_MSG(...)
# endif
#endif
#if defined(ESP8266)
@ -620,7 +622,7 @@ wificonfigresult_t WiFiConfig::_setupAP(wificonfig_cb cb)
}
} else if (upload.status == UPLOAD_FILE_END) {
if (Update.end(true)) { //true to set the size to the current progress
//Serial.printf("Update Success: %u\nRebooting...\n", upload.totalSize);
DEBUG_MSG("WifiConfig: Update Success: %u\nRebooting...\n", upload.totalSize);
} else {
//Update.printError(Serial);
}