From e3c13f8770363032b7b995b418a05976eb225dad Mon Sep 17 00:00:00 2001 From: Li Shuai Date: Tue, 20 Apr 2021 17:25:18 +0800 Subject: [PATCH] light sleep: diable phy tsens for esp32s3 --- components/esp_phy/include/phy.h | 2 +- components/esp_phy/src/phy_init.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/esp_phy/include/phy.h b/components/esp_phy/include/phy.h index c0eadbf2ba..51b972bb6c 100644 --- a/components/esp_phy/include/phy.h +++ b/components/esp_phy/include/phy.h @@ -69,7 +69,7 @@ void phy_wakeup_init(void); */ void phy_close_rf(void); -#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S2 +#if !CONFIG_IDF_TARGET_ESP32 /** * @brief Disable PHY temperature sensor. */ diff --git a/components/esp_phy/src/phy_init.c b/components/esp_phy/src/phy_init.c index e7e7c15638..86e9925374 100644 --- a/components/esp_phy/src/phy_init.c +++ b/components/esp_phy/src/phy_init.c @@ -262,7 +262,7 @@ void esp_phy_disable(void) phy_digital_regs_store(); // Disable PHY and RF. phy_close_rf(); -#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S2 +#if !CONFIG_IDF_TARGET_ESP32 // Disable PHY temperature sensor phy_xpd_tsens(); #endif