esp_wifi: close tsens when close phy (backport v4.3)

This commit is contained in:
ninh
2021-03-29 14:08:24 +08:00
parent ae15a0cab8
commit 2a5cf2c3e0
3 changed files with 3 additions and 3 deletions

View File

@@ -69,7 +69,7 @@ void phy_wakeup_init(void);
*/ */
void phy_close_rf(void); void phy_close_rf(void);
#if CONFIG_IDF_TARGET_ESP32C3 #if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S2
/** /**
* @brief Disable PHY temperature sensor. * @brief Disable PHY temperature sensor.
*/ */

View File

@@ -265,7 +265,7 @@ void esp_phy_disable(void)
phy_digital_regs_store(); phy_digital_regs_store();
// Disable PHY and RF. // Disable PHY and RF.
phy_close_rf(); phy_close_rf();
#if CONFIG_IDF_TARGET_ESP32C3 #if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S2
// Disable PHY temperature sensor // Disable PHY temperature sensor
phy_xpd_tsens(); phy_xpd_tsens();
#endif #endif