Merge branch 'bugfix/idle_task_skipped_light_sleep' into 'master'

pm_impl: fix neither enter light sleep nor enter "waiti" state in idle task

Closes IDFGH-6294

See merge request espressif/esp-idf!17820
This commit is contained in:
Jiang Jiang Jian 2022-04-28 16:11:29 +08:00
commit 1b81efc320

View File

@ -833,8 +833,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