Skip to content

Commit bbbbec9

Browse files
arendstlucasssvaz
andauthored
Fix ESP32-Solo WDT on HTTP OTA update (#5426)
* Fix ESP32-Solo WDT on HTTP OTA update * Fix ESP32-Solo WDT on HTTP OTA update * Fix commits --------- Co-authored-by: Lucas Saavedra Vaz <[email protected]>
1 parent d59efdc commit bbbbec9

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
@@ -248,6 +248,10 @@ String EspClass::getSketchMD5()
248248
md5.add(pb, readBytes);
249249
lengthLeft -= readBytes;
250250
offset += readBytes;
251+
252+
#if CONFIG_FREERTOS_UNICORE
253+
delay(1); // Fix solo WDT
254+
#endif
251255
}
252256
free(pb);
253257
md5.calculate();

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

+4
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,10 @@ size_t UpdateClass::writeStream(Stream &data) {
393393
if((_bufferLen == remaining() || _bufferLen == SPI_FLASH_SEC_SIZE) && !_writeBuffer())
394394
return written;
395395
written += toRead;
396+
397+
#if CONFIG_FREERTOS_UNICORE
398+
delay(1); // Fix solo WDT
399+
#endif
396400
}
397401
return written;
398402
}

0 commit comments

Comments
 (0)