mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 02:09:30 +02:00
Merge pull request #1396 from jonny5532/fix/sort-out-watchdogs
Readd watchdog (re)initialization code, disable idle timeouts, make AsyncTCP yield (discuss!)
This commit is contained in:
commit
cf3db85d20
2 changed files with 22 additions and 6 deletions
|
@ -228,6 +228,11 @@ void _asynctcpsock_task(void *)
|
|||
sockList.clear();
|
||||
|
||||
xSemaphoreGiveRecursive(_asyncsock_mutex);
|
||||
|
||||
// Battery-Emulator modification: Yield so that other same-priority
|
||||
// tasks on the same core get a turn, otherwise heavy HTTP traffic will
|
||||
// exclude them.
|
||||
taskYIELD();
|
||||
}
|
||||
|
||||
vTaskDelete(NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue