bugfix: close phy_tsens before deepsleep

This commit is contained in:
wuzhenghui 2023-05-25 12:05:54 +08:00
parent c25d92074e
commit d33c693cfa

View File

@ -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();