提交 8979d70a 编写于 作者: U Urey 提交者: GitHub

Update ethernetif.c

if device->eth_rx is NULL ,rx thread will hard fault...
上级 6d14e139
......@@ -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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册