diff options
| author | Bernard Xiong <[email protected]> | 2016-09-23 18:05:42 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-09-23 18:05:42 +0800 |
| commit | 6d1787e5dc7167ecbb4b79477a34c9780aaa061c (patch) | |
| tree | 2ba9950ac7403344a3566d796b8ef15937c94cd5 /components | |
| parent | 97671b12cb1c11908486745a80bd25554861d3d7 (diff) | |
| parent | 8979d70a694f852c779b02a087962771cacae53e (diff) | |
Merge pull request #668 from yygg/master
Update ethernetif.c
Diffstat (limited to 'components')
| -rw-r--r-- | components/net/lwip-1.4.1/src/netif/ethernetif.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/net/lwip-1.4.1/src/netif/ethernetif.c b/components/net/lwip-1.4.1/src/netif/ethernetif.c index f0b2f814dc..f0c28ecf06 100644 --- a/components/net/lwip-1.4.1/src/netif/ethernetif.c +++ b/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) { |
