diff options
| author | Liu Yang <[email protected]> | 2024-03-20 13:41:51 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2024-03-20 02:28:35 -0400 |
| commit | 59dbebe6fc2cee6a33c2f94c5a28b4a1f2d800d2 (patch) | |
| tree | 555489874d962d4d5c6050750c7aca03024e0ef8 | |
| parent | 5e26b4c58536a95744b96aa141843de86d23838a (diff) | |
[components/driver] Fix issue for serial_V2 in no buffer bloking tx mode.
| -rw-r--r-- | components/drivers/serial/serial_v2.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |
