We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c33289a commit 76885caCopy full SHA for 76885ca
bsp/stm32/libraries/HAL_Drivers/drv_usart.c
@@ -489,7 +489,7 @@ static void dma_isr(struct rt_serial_device *serial)
489
}
490
else
491
{
492
- recv_len = recv_total_index - uart->dma_rx.last_index;
+ recv_len = serial->config.bufsz - uart->dma_rx.last_index + recv_total_index;
493
494
uart->dma_rx.last_index = recv_total_index;
495
rt_hw_interrupt_enable(level);
0 commit comments