From 2c621e538b8f8fb53b1d1b7cec739edb8bf50bab Mon Sep 17 00:00:00 2001 From: gaoxiaojie Date: Thu, 21 Apr 2022 14:26:01 +0800 Subject: [PATCH] pm_impl: fix neither enter light sleep nor enter waiti state in idle task --- components/esp32/pm_esp32.c | 2 +- components/esp32s2beta/pm_esp32s2beta.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/esp32/pm_esp32.c b/components/esp32/pm_esp32.c index 241bd13d7f..d7d825c746 100644 --- a/components/esp32/pm_esp32.c +++ b/components/esp32/pm_esp32.c @@ -475,8 +475,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 asm("waiti 0"); #endif // CONFIG_FREERTOS_USE_TICKLESS_IDLE diff --git a/components/esp32s2beta/pm_esp32s2beta.c b/components/esp32s2beta/pm_esp32s2beta.c index 84b5e46c67..8c5e10886e 100644 --- a/components/esp32s2beta/pm_esp32s2beta.c +++ b/components/esp32s2beta/pm_esp32s2beta.c @@ -457,8 +457,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 asm("waiti 0"); #endif // CONFIG_FREERTOS_USE_TICKLESS_IDLE