From fc5fe1132a4b46223e142fdc86ae36948ae178ae Mon Sep 17 00:00:00 2001 From: wuzhenghui Date: Thu, 18 May 2023 16:38:48 +0800 Subject: [PATCH] bugfix: close phy_tsens before deepsleep --- components/esp_phy/src/phy_init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/esp_phy/src/phy_init.c b/components/esp_phy/src/phy_init.c index 69fb80f931..83ff6ab809 100644 --- a/components/esp_phy/src/phy_init.c +++ b/components/esp_phy/src/phy_init.c @@ -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 }