bugfix: close phy_tsens before deepsleep

This commit is contained in:
wuzhenghui 2023-05-18 16:38:48 +08:00
parent cc7c851cb2
commit fc5fe1132a

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
}