From d33c693cfa27a953270fbdbc4110b2a85fede1be Mon Sep 17 00:00:00 2001 From: wuzhenghui Date: Thu, 25 May 2023 12:05:54 +0800 Subject: [PATCH] bugfix: close phy_tsens before deepsleep --- components/esp_hw_support/sleep_modes.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/esp_hw_support/sleep_modes.c b/components/esp_hw_support/sleep_modes.c index 654a8042cb..4eb69e442c 100644 --- a/components/esp_hw_support/sleep_modes.c +++ b/components/esp_hw_support/sleep_modes.c @@ -438,6 +438,10 @@ static uint32_t IRAM_ATTR esp_sleep_start(uint32_t pd_flags) if (esp_phy_is_initialized()){ extern void phy_close_rf(void); phy_close_rf(); +#if !CONFIG_IDF_TARGET_ESP32 + extern void phy_xpd_tsens(void); + phy_xpd_tsens(); +#endif } } else { misc_modules_sleep_prepare();