Updatecheck to flash, not to filesize

This commit is contained in:
MichaelDvP
2023-02-21 07:41:01 +01:00
parent daad2ffe6c
commit e0b89ae3ed

View File

@@ -77,7 +77,7 @@ void UploadFileService::handleUpload(AsyncWebServerRequest * request, const Stri
}
#endif
// it's firmware - initialize the ArduinoOTA updater
if (Update.begin(fsize)) {
if (Update.begin()) {
if (strlen(md5) == 32) {
Update.setMD5(md5);
md5[0] = '\0';