mirror of
https://github.com/apache/nuttx.git
synced 2026-05-18 17:18:28 +08:00
serial:fix driver/serial/serial.c logic error
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
7ccdb2cfa8
commit
062e08ea3a
@@ -848,7 +848,7 @@ static ssize_t uart_read(FAR struct file *filep,
|
||||
|
||||
/* Discarding \r ? */
|
||||
|
||||
if ((ch == '\r') & (dev->tc_iflag & IGNCR))
|
||||
if ((ch == '\r') && (dev->tc_iflag & IGNCR))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user