debug comments

This commit is contained in:
Proddy
2022-12-04 12:44:57 +01:00
parent 1c48aa8444
commit 990d75d42a
2 changed files with 5 additions and 0 deletions

View File

@@ -29,9 +29,12 @@ void UploadFileService::handleUpload(AsyncWebServerRequest * request, const Stri
std::string extension = fname.substr(position + 1); std::string extension = fname.substr(position + 1);
size_t fsize = request->contentLength(); size_t fsize = request->contentLength();
#ifdef EMSESP_DEBUG
#if defined(EMSESP_USE_SERIAL) #if defined(EMSESP_USE_SERIAL)
Serial.println();
Serial.printf("Received filename: %s, len: %d, index: %d, ext: %s, fsize: %d", filename.c_str(), len, index, extension.c_str(), fsize); Serial.printf("Received filename: %s, len: %d, index: %d, ext: %s, fsize: %d", filename.c_str(), len, index, extension.c_str(), fsize);
Serial.println(); Serial.println();
#endif
#endif #endif
is_firmware = false; is_firmware = false;

View File

@@ -52,8 +52,10 @@ uint8_t Command::process(const char * path, const bool is_admin, const JsonObjec
} }
} }
#ifdef EMSESP_DEBUG
#if defined(EMSESP_USE_SERIAL) #if defined(EMSESP_USE_SERIAL)
// Serial.println(p.path().c_str()); // dump paths, for debugging // Serial.println(p.path().c_str()); // dump paths, for debugging
#endif
#endif #endif
// re-calculate new path // re-calculate new path