From 28855d4fb56f07c233df41b8de1fce5371392de5 Mon Sep 17 00:00:00 2001 From: tangyuxin <462747508@qq.com> Date: Fri, 3 Nov 2017 11:49:08 +0800 Subject: [PATCH] =?UTF-8?q?[lwip]=E5=88=A4=E5=AE=9Aeth=5Frx=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E4=B8=BA=E7=A9=BA,=E4=B8=BA=E7=A9=BA=E4=B8=8D?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/net/lwip-2.0.2/src/netif/ethernetif.c | 2 ++ 1 file changed, 2 insertions(+) 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 09d6140b16..a2f1be3641 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) { -- GitLab