We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a2219e commit c5b192eCopy full SHA for c5b192e
features/netsocket/emac-drivers/TARGET_STM/stm32xx_emac.cpp
@@ -677,7 +677,7 @@ void STM32_EMAC::phy_task()
677
uint32_t status;
678
679
if (HAL_ETH_ReadPHYRegister(&EthHandle, PHY_BSR, &status) == HAL_OK) {
680
- if (emac_link_state_cb) {
+ if ((emac_link_state_cb) && (status != 0xFFFF)) {
681
if ((status & PHY_LINKED_STATUS) && !(phy_status & PHY_LINKED_STATUS)) {
682
emac_link_state_cb(true);
683
} else if (!(status & PHY_LINKED_STATUS) && (phy_status & PHY_LINKED_STATUS)) {
0 commit comments