mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 20:54:32 +02:00
Fix wdt idle hook
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user