Merge pull request #668 from yygg/master

Update ethernetif.c
This commit is contained in:
Bernard Xiong 2016-09-23 18:05:42 +08:00 committed by GitHub
commit 6d1787e5dc
1 changed files with 2 additions and 0 deletions

View File

@ -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)
{