Skip to content

Fix watchdog timeout on esp32 when config portal is active#1818

Open
h2zero wants to merge 1 commit intotzapu:masterfrom
h2zero:master
Open

Fix watchdog timeout on esp32 when config portal is active#1818
h2zero wants to merge 1 commit intotzapu:masterfrom
h2zero:master

Conversation

@h2zero
Copy link

@h2zero h2zero commented May 2, 2025

Calling yield() on the esp32 doesn't let the idle task run and therefore doesn't feed the watchdog. Instead, calling delay(1) forces the context change and allows the idle task to run.

Calling `yield()` on the esp32 doesn't let the idle task run and therefore doesn't feed the watchdog. Instead, calling `delay(1)` forces the context change and allows the idle task to run.
@thorrak
Copy link
Contributor

thorrak commented Dec 11, 2025

Huh, I never knew this was a thing: https://esp32.com/viewtopic.php?t=809#p3442

I always assumed that yield() fed the watchdog/allowed all pending tasks to run, not just higher priority ones. Go figure.

@h2zero
Copy link
Author

h2zero commented Dec 11, 2025

Yep, just like yielding when driving, don't need to stop if nobody else has the right of way.

Funny that this hasn't been merged or commented on at least until now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants