serial:fix driver/serial/serial.c logic error

Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
This commit is contained in:
dulibo1 2023-07-12 18:17:32 +08:00 committed by Alan Carvalho de Assis
parent 7ccdb2cfa8
commit 062e08ea3a

View File

@ -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;
}