Explorar o código

【完善】PHY 状态检测驱动

SummerGift %!s(int64=6) %!d(string=hai) anos
pai
achega
44e70b3c0d
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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
                 else
                 {
                 {
                     LOG_D("PHY Control/Status REG read error."); 
                     LOG_D("PHY Control/Status REG read error."); 
+                    continue;
                 }
                 }
             }
             }
         }
         }
+        else
+        {
+            continue;
+        }
 
 
         /* linkchange */
         /* linkchange */
         if (phy_speed_new != phy_speed)
         if (phy_speed_new != phy_speed)