diff options
| author | tangyuxin <[email protected]> | 2017-11-03 11:49:08 +0800 |
|---|---|---|
| committer | tangyuxin <[email protected]> | 2017-11-03 11:49:18 +0800 |
| commit | 28855d4fb56f07c233df41b8de1fce5371392de5 (patch) | |
| tree | 4230985ed78e7eb29852da49e1d6207645a2ad28 /components | |
| parent | 0941957eb703769dcf62143adfae2c2dc806ff77 (diff) | |
[lwip]判定eth_rx是否为空,为空不执行。
Diffstat (limited to 'components')
| -rw-r--r-- | components/net/lwip-2.0.2/src/netif/ethernetif.c | 2 |
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 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) { |
