mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
debug comments
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user