Debugovaci mako
This commit is contained in:
parent
36e0ab5f3a
commit
66cd08894e
@ -23,11 +23,13 @@
|
||||
# define SETHOSTNAME(a) WiFi.setHostname(a)
|
||||
#endif
|
||||
|
||||
#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)
|
||||
extern "C" {
|
||||
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user