【完善】去除串口 dma 中无法触发的代码判断

This commit is contained in:
SummerGift 2019-07-23 16:15:24 +08:00
parent c94cac2e27
commit 0cfcb906d5
1 changed files with 3 additions and 5 deletions

View File

@ -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;
}
}
/*