From 3ae4a6b8c3574965712778fff4a26fce519455e2 Mon Sep 17 00:00:00 2001 From: ligd Date: Thu, 2 Feb 2023 11:19:10 +0800 Subject: [PATCH] sim/uart: do uart_xmitchars() when tty_txint enabled to speed up the logout speed Signed-off-by: ligd --- arch/sim/src/sim/sim_uart.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/sim/src/sim/sim_uart.c b/arch/sim/src/sim/sim_uart.c index 3965b45a2a..604895a047 100644 --- a/arch/sim/src/sim/sim_uart.c +++ b/arch/sim/src/sim/sim_uart.c @@ -473,6 +473,11 @@ static void tty_txint(struct uart_dev_s *dev, bool enable) struct tty_priv_s *priv = dev->priv; priv->txint = enable; + + if (enable) + { + uart_xmitchars(dev); + } } /****************************************************************************