Debugovaci mako
This commit is contained in:
		| @@ -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); | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user