Skip to content

Commit 3091165

Browse files
committed
Add a periodic watchdog reset
1 parent 10cf967 commit 3091165

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

samples/Basic_Tasks/app/application.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ void hwTimerDelegate(uint32_t count)
5151

5252
lastCount = count;
5353
timer.start();
54+
55+
#ifdef ARCH_ESP32
56+
/*
57+
* The task queue gets hammered very hard, with no idle time.
58+
* We need to occasionally reset the watchdog timer just to let the system know everything's OK.
59+
*/
60+
WDT.alive();
61+
#endif
5462
}
5563

5664
void IRAM_ATTR hwTimerCallback()

0 commit comments

Comments
 (0)