Skip to content

Commit

Permalink
Merge branch 'bugfix/close_phy_tsens_before_sleep' into 'master'
Browse files Browse the repository at this point in the history
sleep: fix deepsleep current leakage caused by phy_tsens

Closes WIFI-5608

See merge request espressif/esp-idf!23823
  • Loading branch information
esp-wzh committed May 19, 2023
2 parents e5d0e3c + f8b7261 commit 9894697
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/esp_phy/src/phy_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,9 @@ void esp_phy_load_cal_and_init(void)
#endif

ESP_ERROR_CHECK(esp_deep_sleep_register_hook(&phy_close_rf));
#if !CONFIG_IDF_TARGET_ESP32
ESP_ERROR_CHECK(esp_deep_sleep_register_hook(&phy_xpd_tsens));
#endif

free(cal_data); // PHY maintains a copy of calibration data, so we can free this
}
Expand Down

0 comments on commit 9894697

Please sign in to comment.