Browse Source

【完善】PHY 状态检测驱动

SummerGift 6 years ago
parent
commit
44e70b3c0d
1 changed files with 5 additions and 0 deletions
  1. 5 0
      bsp/stm32/libraries/HAL_Drivers/drv_eth.c

+ 5 - 0
bsp/stm32/libraries/HAL_Drivers/drv_eth.c

@@ -501,9 +501,14 @@ static void phy_monitor_thread_entry(void *parameter)
                 else
                 {
                     LOG_D("PHY Control/Status REG read error."); 
+                    continue;
                 }
             }
         }
+        else
+        {
+            continue;
+        }
 
         /* linkchange */
         if (phy_speed_new != phy_speed)