From 784b46be111752e59e4f052b6c8b84d211629e44 Mon Sep 17 00:00:00 2001 From: gaoxiaojie Date: Wed, 20 Apr 2022 19:37:46 +0800 Subject: [PATCH] pm_impl: fix neither enter light sleep nor enter waiti state in idle task --- components/esp_pm/pm_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_pm/pm_impl.c b/components/esp_pm/pm_impl.c index 55d234c370..239390789e 100644 --- a/components/esp_pm/pm_impl.c +++ b/components/esp_pm/pm_impl.c @@ -831,8 +831,8 @@ void esp_pm_impl_waiti(void) * the lock so that vApplicationSleep can attempt to enter light sleep. */ esp_pm_impl_idle_hook(); - s_skipped_light_sleep[core_id] = false; } + s_skipped_light_sleep[core_id] = true; #else cpu_hal_waiti(); #endif // CONFIG_FREERTOS_USE_TICKLESS_IDLE