Skip to content

Commit

Permalink
remove serial output if no serial selected during upload
Browse files Browse the repository at this point in the history
  • Loading branch information
proddy committed Jul 22, 2022
1 parent 02989ec commit 297134d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/framework/UploadFileService.cpp
Expand Up @@ -28,8 +28,10 @@ void UploadFileService::handleUpload(AsyncWebServerRequest * request, const Stri
std::string extension = fname.substr(position + 1);
size_t fsize = request->contentLength();

#if defined(EMSESP_USE_SERIAL)
Serial.printf("Received filename: %s, len: %d, index: %d, ext: %s, fsize: %d", filename.c_str(), len, index, extension.c_str(), fsize);
Serial.println();
#endif

if ((extension == "bin") && (fsize > 1500000)) {
is_firmware = true;
Expand Down

0 comments on commit 297134d

Please sign in to comment.