Skip to content

Commit ed00306

Browse files
Merge pull request #415 from ianrrees/ethernet-wdt-hack
Issue #187 - Feed watchdog in http_update_write()
2 parents 4e24837 + b4978b9 commit ed00306

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/http_update.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ bool http_update_start(String source, size_t total)
8888

8989
bool http_update_write(uint8_t *data, size_t len)
9090
{
91+
// Issue #187 "HTTP update fails on ESP32 ethernet gateway" was caused by the
92+
// loop watchdog timing out, presumably because updating wasn't bottlenecked
93+
// by network and execution stayed in the Mongoose poll() method.
94+
feedLoopWDT();
95+
9196
DBUGF("Update Writing %u, %u", update_position, len);
9297
size_t written = Update.write(data, len);
9398
DBUGVAR(written);

0 commit comments

Comments
 (0)