mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/close_phy_tsens_before_sleep' into 'master'
sleep: fix deepsleep current leakage caused by phy_tsens Closes WIFI-5608 See merge request espressif/esp-idf!23823
This commit is contained in:
commit
9894697037
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user