fix(phy): fix pll track when enabling and disabling PHY frequently

This commit is contained in:
zwx
2024-01-23 16:53:50 +08:00
committed by BOT
parent 8f89b32938
commit 9da4043cba
5 changed files with 58 additions and 31 deletions

View File

@@ -278,6 +278,10 @@ void esp_phy_enable(esp_phy_modem_t modem)
#endif
}
phy_set_modem_flag(modem);
#if !CONFIG_IDF_TARGET_ESP32
// Immediately track pll when phy enabled.
phy_track_pll();
#endif
_lock_release(&s_phy_access_lock);
}