Explorar o código

Merge pull request #668 from yygg/master

Update ethernetif.c
Bernard Xiong %!s(int64=9) %!d(string=hai) anos
pai
achega
6d1787e5dc
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      components/net/lwip-1.4.1/src/netif/ethernetif.c

+ 2 - 0
components/net/lwip-1.4.1/src/netif/ethernetif.c

@@ -367,6 +367,8 @@ static void eth_rx_thread_entry(void* parameter)
             /* receive all of buffer */
             while (1)
             {
+            	if(device->eth_rx == RT_NULL) break;
+            	
                 p = device->eth_rx(&(device->parent));
                 if (p != RT_NULL)
                 {