【完善】去除串口 dma 中无法触发的代码判断
This commit is contained in:
parent
c94cac2e27
commit
0cfcb906d5
@ -432,8 +432,6 @@ static void rt_dma_recv_update_put_index(struct rt_serial_device *serial, rt_siz
|
|||||||
{
|
{
|
||||||
rx_fifo->get_index = rx_fifo->put_index;
|
rx_fifo->get_index = rx_fifo->put_index;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rx_fifo->get_index >= serial->config.bufsz) rx_fifo->get_index = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user