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

release/v4.2
gaoxiaojie 2022-04-21 14:33:30 +08:00
rodzic d8105a565e
commit 5516dc7d0c
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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

Wyświetl plik

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