mirror of
https://github.com/meshtastic/firmware.git
synced 2026-10-27 02:19:15 -04:00
turn on thread watchdog
This commit is contained in:
1 parent
a595fc4642
commit
bd477f0fb2
4 files changed
+44
-5
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user