From 51708745f64fde0ca0ecc44294e4cce6f2632a6c Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Wed, 29 Aug 2018 08:31:43 -0600 Subject: [PATCH] drivers/serial/serial_dma.c: Fix typo error in uart_recvchars_dma() --- drivers/serial/serial_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/serial_dma.c b/drivers/serial/serial_dma.c index 7012c01f9e..82838b05fe 100644 --- a/drivers/serial/serial_dma.c +++ b/drivers/serial/serial_dma.c @@ -206,7 +206,7 @@ void uart_recvchars_dma(FAR uart_dev_t *dev) if (rxbuf->head == rxbuf->tail) { rxbuf->head = 0; - rxbuf->head = 0; + rxbuf->tail = 0; } /* Get the next head index and check if there is room to adding another