mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-08 20:05:29 +08:00
Merge pull request #945 from enkiller/modify_lwip_rx_is_null
[lwip]判定eth_rx是否为空,为空不执行。
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user