sim/uart: do uart_xmitchars() when tty_txint enabled

to speed up the logout speed

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2023-02-02 11:19:10 +08:00 committed by Xiang Xiao
parent 03b164f59c
commit 3ae4a6b8c3
1 changed files with 5 additions and 0 deletions

View File

@ -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);
}
}
/****************************************************************************