Debugovaci mako
This commit is contained in:
parent
36e0ab5f3a
commit
66cd08894e
@ -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
|
||||||
|
# ifdef DEBUG_ESP_PORT
|
||||||
# define DEBUG_MSG(_1, ...) DEBUG_ESP_PORT.printf_P(PSTR(_1), ##__VA_ARGS__)
|
# define DEBUG_MSG(_1, ...) DEBUG_ESP_PORT.printf_P(PSTR(_1), ##__VA_ARGS__)
|
||||||
#else
|
# else
|
||||||
# define DEBUG_MSG(...)
|
# 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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user