Merge remote-tracking branch 'offical/master' into at32_patch

This commit is contained in:
chinky 2022-08-05 18:30:42 +08:00
commit dd299f2a78

View File

@ -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);