未验证 提交 bfd28d4b 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #2889 from SummerGGift/master710

[components][serial] 去除串口 DMA 中无法触发的代码判断
......@@ -428,12 +428,10 @@ static void rt_dma_recv_update_put_index(struct rt_serial_device *serial, rt_siz
}
}
if(rx_fifo->is_full == RT_TRUE)
if(rx_fifo->is_full == RT_TRUE)
{
rx_fifo->get_index = rx_fifo->put_index;
}
if (rx_fifo->get_index >= serial->config.bufsz) rx_fifo->get_index = 0;
rx_fifo->get_index = rx_fifo->put_index;
}
}
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册