mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
bugfix: close phy_tsens before deepsleep
This commit is contained in:
parent
fbe0c85229
commit
05714f207d
@ -463,6 +463,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_ESP32
|
||||||
|
extern void phy_xpd_tsens(void);
|
||||||
|
phy_xpd_tsens();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
misc_modules_sleep_prepare(deep_sleep);
|
misc_modules_sleep_prepare(deep_sleep);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user