turn on thread watchdog

This commit is contained in:
geeksville committed 2020-06-28 11:12:12 -07:00
1 parent a595fc4642
commit bd477f0fb2
4 files changed
+44 -5

No files matched your search

+9
View File
@@ -17,8 +17,15 @@ void Thread::callRun(void *_this)
void WorkerThread::doRun()
{
startWatchdog();
while (!wantExit) {
stopWatchdog();
block();
startWatchdog();
// no need - startWatchdog is guaranteed to give us one full watchdog interval
// serviceWatchdog(); // Let our loop worker have one full watchdog interval (at least) to run
#ifdef DEBUG_STACK
static uint32_t lastPrint = 0;
@@ -30,6 +37,8 @@ void WorkerThread::doRun()
loop();
}
stopWatchdog();
}
/**