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) # define SETHOSTNAME(a) WiFi.setHostname(a)
#endif #endif
#ifdef DEBUG_ESP_PORT #ifndef DEBUG_MSG
# define DEBUG_MSG(_1, ...) DEBUG_ESP_PORT.printf_P(PSTR(_1), ##__VA_ARGS__) # ifdef DEBUG_ESP_PORT
#else # define DEBUG_MSG(_1, ...) DEBUG_ESP_PORT.printf_P(PSTR(_1), ##__VA_ARGS__)
# define DEBUG_MSG(...) # else
# define DEBUG_MSG(...)
# endif
#endif #endif
#if defined(ESP8266) #if defined(ESP8266)
@ -620,7 +622,7 @@ wificonfigresult_t WiFiConfig::_setupAP(wificonfig_cb cb)
} }
} else if (upload.status == UPLOAD_FILE_END) { } else if (upload.status == UPLOAD_FILE_END) {
if (Update.end(true)) { //true to set the size to the current progress 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 { } else {
//Update.printError(Serial); //Update.printError(Serial);
} }