summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/net/lwip-2.0.2/src/netif/ethernetif.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/net/lwip-2.0.2/src/netif/ethernetif.c b/components/net/lwip-2.0.2/src/netif/ethernetif.c
index 08d1242e71..6fbf8597e9 100644
--- a/components/net/lwip-2.0.2/src/netif/ethernetif.c
+++ b/components/net/lwip-2.0.2/src/netif/ethernetif.c
@@ -391,6 +391,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)
{