mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
Back out 70cb75adaf3243478276cebf367c5f47c4725715
This commit is contained in:
@@ -877,7 +877,7 @@ static int uart_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
count = dev->xmit.size - (dev->xmit.head - dev->xmit.tail);
|
count = dev->xmit.size - (dev->xmit.head - dev->xmit.tail) - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
irqrestore(state);
|
irqrestore(state);
|
||||||
|
|||||||
Reference in New Issue
Block a user