From 59dbebe6fc2cee6a33c2f94c5a28b4a1f2d800d2 Mon Sep 17 00:00:00 2001 From: Liu Yang Date: Wed, 20 Mar 2024 13:41:51 +0800 Subject: [PATCH] [components/driver] Fix issue for serial_V2 in no buffer bloking tx mode. --- components/drivers/serial/serial_v2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/drivers/serial/serial_v2.c b/components/drivers/serial/serial_v2.c index 5d6f2a8be3..ce657e55f6 100644 --- a/components/drivers/serial/serial_v2.c +++ b/components/drivers/serial/serial_v2.c @@ -483,7 +483,8 @@ static rt_ssize_t _serial_fifo_tx_blocking_nbuf(struct rt_device *dev, RT_SERIAL_TX_BLOCKING); /* Waiting for the transmission to complete */ rt_completion_wait(&(tx_fifo->tx_cpt), RT_WAITING_FOREVER); - + /* Inactive tx mode flag */ + tx_fifo->activated = RT_FALSE; return rst; }