Skip to content

Commit 99ceccd

Browse files
authored
Backport: Fix ESP32-Solo WDT on HTTP OTA update (#9223)
* Fix ESP32-Solo WDT on HTTP OTA update * Fix ESP32-Solo WDT on HTTP OTA update
1 parent 0c0bd86 commit 99ceccd

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Diff for: cores/esp32/Esp.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@ String EspClass::getSketchMD5()
240240
md5.add(buf.get(), readBytes);
241241
lengthLeft -= readBytes;
242242
offset += readBytes;
243+
244+
#if CONFIG_FREERTOS_UNICORE
245+
delay(1); // Fix solo WDT
246+
#endif
243247
}
244248
md5.calculate();
245249
result = md5.toString();

Diff for: libraries/Update/src/Updater.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,10 @@ size_t UpdateClass::writeStream(Stream &data) {
386386
if((_bufferLen == remaining() || _bufferLen == SPI_FLASH_SEC_SIZE) && !_writeBuffer())
387387
return written;
388388
written += toRead;
389+
390+
#if CONFIG_FREERTOS_UNICORE
391+
delay(1); // Fix solo WDT
392+
#endif
389393
}
390394
return written;
391395
}

0 commit comments

Comments
 (0)