Merge branch 'bugfix/close_phy_tsens_before_sleep_v5.1' into 'release/v5.1'

sleep: fix deepsleep current leakage caused by phy_tsens (backport v5.1)

See merge request espressif/esp-idf!23843
This commit is contained in:
Jiang Jiang Jian 2023-05-19 20:29:22 +08:00
commit 8cecbafe18

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
}