mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
Updatecheck to flash, not to filesize
This commit is contained in:
@@ -77,7 +77,7 @@ void UploadFileService::handleUpload(AsyncWebServerRequest * request, const Stri
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
// it's firmware - initialize the ArduinoOTA updater
|
// it's firmware - initialize the ArduinoOTA updater
|
||||||
if (Update.begin(fsize)) {
|
if (Update.begin()) {
|
||||||
if (strlen(md5) == 32) {
|
if (strlen(md5) == 32) {
|
||||||
Update.setMD5(md5);
|
Update.setMD5(md5);
|
||||||
md5[0] = '\0';
|
md5[0] = '\0';
|
||||||
|
|||||||
Reference in New Issue
Block a user