提交 76885ca9 编写于 作者: mysterywolf's avatar mysterywolf 提交者: mysterywolf
上级 c33289ac
......@@ -489,7 +489,7 @@ static void dma_isr(struct rt_serial_device *serial)
}
else
{
recv_len = recv_total_index - uart->dma_rx.last_index;
recv_len = serial->config.bufsz - uart->dma_rx.last_index + recv_total_index;
}
uart->dma_rx.last_index = recv_total_index;
rt_hw_interrupt_enable(level);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册