fix(esp_system): fix cannot pd cpu and rc fast at the same time during light sleep

This commit is contained in:
wuzhenghui
2023-08-11 19:36:10 +08:00
parent d31e0fb105
commit 64f8e61b17

View File

@ -651,7 +651,7 @@ static uint32_t IRAM_ATTR esp_sleep_start(uint32_t pd_flags)
if (!s_ultra_low_enabled) {
sleep_flags |= RTC_SLEEP_NO_ULTRA_LOW;
}
if (rtc_dig_8m_enabled()) {
if (periph_using_8m) {
sleep_flags |= RTC_SLEEP_DIG_USE_8M;
}