mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 20:56:01 -04:00
bugfix: close phy_tsens before deepsleep
This commit is contained in:
parent
cc7c851cb2
commit
fc5fe1132a
@ -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