Skip to content

Commit

Permalink
Merge branch 'bugfix/close_phy_tsens_before_sleep_v4.4' into 'release…
Browse files Browse the repository at this point in the history
…/v4.4'

sleep: fix deepsleep current leakage caused by phy_tsens (backport v4.4)

See merge request espressif/esp-idf!23908
  • Loading branch information
jack0c committed Jun 9, 2023
2 parents 7200764 + d33c693 commit 2771f0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/esp_hw_support/sleep_modes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2771f0c

Please sign in to comment.