xiaoxiang781216 commented on code in PR #20099:
URL: https://github.com/apache/nuttx/pull/20099#discussion_r3971991777
##########
drivers/serial/serial_io.c:
##########
@@ -173,22 +174,32 @@ void uart_recvchars(FAR uart_dev_t *dev)
while (uart_rxavailable(dev))
{
int nexthead = rxbuf->head + 1 < rxbuf->size ? rxbuf->head + 1 : 0;
- bool is_full = (nexthead == rxbuf->tail);
Review Comment:
```
sbuf_size_t tail = rxbuf->tail;
bool is_full = (nexthead == tail);
```
and remove line 188-189
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]