Skip to content

Minor bug? rxbuf/read_buf_len argument in machine.UART #12392

Discussion options

You must be logged in to vote

However, the following code using the older argument does not show an error.

Looking into the code, there is only one small difference in the handling of rxbuf vs. read_buf_len, if the UART is static. According to the error message, that seems to be the case for UART2 in your tests. For static UARTs, setting the buffer size via rxbuf raises en error, while any setting for read_buf_len seems to be ignored silently. For non-static UARTs the values for rxbuf and read_buf_len are treated identical.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ekspla
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ekspla
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants