driver/serial: fix error echo about VT100 escape sequence
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
1956385a7d
commit
ec4f6ecce2
|
@ -889,7 +889,7 @@ static ssize_t uart_read(FAR struct file *filep,
|
|||
{
|
||||
/* Skipping character count down */
|
||||
|
||||
if (--dev->escape > 0)
|
||||
if (dev->escape-- > 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue