mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 09:39:10 -04:00
light sleep: fix cpu pd bug of normal light sleep
This commit is contained in:
parent
f57ab2d69b
commit
58ab3975ea
@ -1086,8 +1086,12 @@ static uint32_t get_power_down_flags(void)
|
||||
#endif // SOC_TOUCH_PAD_WAKE_SUPPORTED
|
||||
}
|
||||
|
||||
#if !SOC_PM_SUPPORT_CPU_PD
|
||||
if (s_config.pd_options[ESP_PD_DOMAIN_CPU] == ESP_PD_OPTION_AUTO) {
|
||||
#if SOC_PM_SUPPORT_CPU_PD
|
||||
if (s_config.cpu_pd_mem == NULL) {
|
||||
s_config.pd_options[ESP_PD_DOMAIN_CPU] = ESP_PD_OPTION_ON;
|
||||
}
|
||||
#else
|
||||
if (s_config.pd_options[ESP_PD_DOMAIN_CPU] != ESP_PD_OPTION_ON) {
|
||||
s_config.pd_options[ESP_PD_DOMAIN_CPU] = ESP_PD_OPTION_ON;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user