esp_pm: fix an issue and add an interface (backport to v4.3)

This commit is contained in:
ninh
2021-03-16 11:31:03 +08:00
parent 693aaef039
commit bd03a0e66a
3 changed files with 34 additions and 0 deletions

View File

@@ -702,6 +702,7 @@ esp_err_t esp_light_sleep_start(void)
esp_clk_slowclk_cal_set(s_config.rtc_clk_cal_period);
#else
s_config.rtc_clk_cal_period = rtc_clk_cal(RTC_CAL_RTC_MUX, RTC_CLK_SRC_CAL_CYCLES);
esp_clk_slowclk_cal_set(s_config.rtc_clk_cal_period);
#endif
/*