mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 12:44:33 +02:00
Merge branch 'bugfix/close_phy_tsens_before_sleep_v5.0' into 'release/v5.0'
sleep: fix deepsleep current leakage caused by phy_tsens (backport v5.0) See merge request espressif/esp-idf!23910
This commit is contained in:
@@ -468,6 +468,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(deep_sleep);
|
||||
|
Reference in New Issue
Block a user