提交 370be083 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #785 from armink/fix_lwip_linkup

[LWIP] Fix lwip 2.0.2 link status problem.
......@@ -114,7 +114,7 @@ static void tcpip_init_done_callback(void *arg)
netif_set_up(ethif->netif);
#endif
if (!(ethif->flags & ETHIF_LINK_PHYUP))
if (ethif->flags & ETHIF_LINK_PHYUP)
{
netif_set_link_up(ethif->netif);
}
......
......@@ -180,7 +180,7 @@ static err_t eth_netif_device_init(struct netif *netif)
netif_set_up(ethif->netif);
#endif
if (!(ethif->flags & ETHIF_LINK_PHYUP))
if (ethif->flags & ETHIF_LINK_PHYUP)
{
/* set link_up for this netif */
netif_set_link_up(ethif->netif);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册