Fix wdt idle hook
This commit is contained in:
parent
57009aaa7f
commit
045a53a7e5
|
@ -145,7 +145,7 @@ void esp_task_wdt_delete() {
|
||||||
#if CONFIG_TASK_WDT_CHECK_IDLE_TASK
|
#if CONFIG_TASK_WDT_CHECK_IDLE_TASK
|
||||||
static bool idle_hook(void) {
|
static bool idle_hook(void) {
|
||||||
#if !CONFIG_TASK_WDT_CHECK_IDLE_TASK_CPU1
|
#if !CONFIG_TASK_WDT_CHECK_IDLE_TASK_CPU1
|
||||||
if (xPortGetCoreID()!=0) return;
|
if (xPortGetCoreID()!=0) return true;
|
||||||
#endif
|
#endif
|
||||||
esp_task_wdt_feed();
|
esp_task_wdt_feed();
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue