mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 20:24:32 +02:00
bugfix: close phy_tsens before deepsleep
This commit is contained in:
@@ -645,6 +645,10 @@ static uint32_t IRAM_ATTR esp_sleep_start(uint32_t pd_flags)
|
|||||||
if (esp_phy_is_initialized()){
|
if (esp_phy_is_initialized()){
|
||||||
extern void phy_close_rf(void);
|
extern void phy_close_rf(void);
|
||||||
phy_close_rf();
|
phy_close_rf();
|
||||||
|
#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S2
|
||||||
|
extern void phy_xpd_tsens(void);
|
||||||
|
phy_xpd_tsens();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
rtc_sleep_low_init(s_config.rtc_clk_cal_period);
|
rtc_sleep_low_init(s_config.rtc_clk_cal_period);
|
||||||
|
Reference in New Issue
Block a user