Skip to content
Snippets Groups Projects
Commit a5f7a302 authored by Damien George's avatar Damien George
Browse files

stm32/uart: Fix uart_rx_any in case of no buffer to return 0 or 1.

parent 372e7a4d
No related branches found
No related tags found
No related merge requests found
......@@ -517,7 +517,7 @@ mp_uint_t uart_rx_any(pyb_uart_obj_t *self) {
} else if (buffer_bytes > 0) {
return buffer_bytes;
} else {
return UART_RXNE_IS_SET(self->uartx);
return UART_RXNE_IS_SET(self->uartx) != 0;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment