serial:fix driver/serial/serial.c logic error
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
This commit is contained in:
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user