Merge branch 'bugfix/close_phy_tsens_before_sleep' into 'master'

sleep: fix deepsleep current leakage caused by phy_tsens

Closes WIFI-5608

See merge request espressif/esp-idf!23823
This commit is contained in:
Wu Zheng Hui 2023-05-19 19:17:22 +08:00
commit 9894697037

View File

@ -816,6 +816,9 @@ void esp_phy_load_cal_and_init(void)
#endif
ESP_ERROR_CHECK(esp_deep_sleep_register_hook(&phy_close_rf));
#if !CONFIG_IDF_TARGET_ESP32
ESP_ERROR_CHECK(esp_deep_sleep_register_hook(&phy_xpd_tsens));
#endif
free(cal_data); // PHY maintains a copy of calibration data, so we can free this
}