fix(esp_hw_support): fix hw CPU retention chips build error if not powerdown CPU in sleep

This commit is contained in:
wuzhenghui
2024-05-20 11:04:06 +08:00
parent 8ac349524f
commit cded21d50e

View File

@@ -2179,7 +2179,7 @@ static uint32_t get_power_down_flags(void)
}
#endif
#if SOC_PM_SUPPORT_CPU_PD
#if SOC_PM_SUPPORT_CPU_PD && ESP_SLEEP_POWER_DOWN_CPU
if ((s_config.domain[ESP_PD_DOMAIN_CPU].pd_option != ESP_PD_OPTION_ON) && cpu_domain_pd_allowed()) {
pd_flags |= RTC_SLEEP_PD_CPU;
}