From 4af892782930bd258494c2df3a78095417ed28de Mon Sep 17 00:00:00 2001 From: xuwenjie Date: Fri, 24 Mar 2023 10:47:35 +0800 Subject: [PATCH] drivers/pty: Support get and set local mode of pty Signed-off-by: xuwenjie --- drivers/serial/pty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/pty.c b/drivers/serial/pty.c index 4d160bbf18..f690469115 100644 --- a/drivers/serial/pty.c +++ b/drivers/serial/pty.c @@ -757,7 +757,7 @@ static int pty_ioctl(FAR struct file *filep, int cmd, unsigned long arg) termiosp->c_iflag = dev->pd_iflag; termiosp->c_oflag = dev->pd_oflag; - termiosp->c_lflag = 0; + termiosp->c_lflag = dev->pd_lflag; ret = OK; } break;