mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 02:47:06 +08:00
[components/driver] Fix issue for serial_V2 in no buffer bloking tx mode.
This commit is contained in:
parent
5e26b4c585
commit
59dbebe6fc
@ -483,7 +483,8 @@ static rt_ssize_t _serial_fifo_tx_blocking_nbuf(struct rt_device *dev,
|
|||||||
RT_SERIAL_TX_BLOCKING);
|
RT_SERIAL_TX_BLOCKING);
|
||||||
/* Waiting for the transmission to complete */
|
/* Waiting for the transmission to complete */
|
||||||
rt_completion_wait(&(tx_fifo->tx_cpt), RT_WAITING_FOREVER);
|
rt_completion_wait(&(tx_fifo->tx_cpt), RT_WAITING_FOREVER);
|
||||||
|
/* Inactive tx mode flag */
|
||||||
|
tx_fifo->activated = RT_FALSE;
|
||||||
return rst;
|
return rst;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user