mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-31 02:59:10 +03:00
show firmware size in KB
This commit is contained in:
@@ -82,7 +82,7 @@ void UploadFileService::handleUpload(AsyncWebServerRequest * request, const Stri
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
// it's firmware - initialize the ArduinoOTA updater
|
// it's firmware - initialize the ArduinoOTA updater
|
||||||
emsesp::EMSESP::logger().info("Uploading firmware file %s (size: %d bytes)", filename.c_str(), filesize);
|
emsesp::EMSESP::logger().info("Uploading firmware file %s (size: %d KB). Please wait...", filename.c_str(), filesize / 1024);
|
||||||
// turn off UART to prevent interference with the upload
|
// turn off UART to prevent interference with the upload
|
||||||
emsesp::EMSuart::stop();
|
emsesp::EMSuart::stop();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user