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

This commit is contained in:
gaoxiaojie 2022-04-21 14:26:01 +08:00 committed by BOT
parent 207ccea3c8
commit 2c621e538b
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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