Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split UART errors #3138

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Split UART errors #3138

wants to merge 1 commit into from

Conversation

bugadani
Copy link
Contributor

It's somewhat weird that we return an enum of RX errors for write_bytes. This PR introduces TxError (and for embedded-io, IoError) so that we can keep these separate. TxError is currently empty, as the hardware doesn't actually handle TX errors - except for RS485 which we don't currently support. We may or may not add RS485 support to this driver (my opinion is that we should introduce a new driver for it) but the TxError enum means we leave a common implementation possible.

@bugadani bugadani marked this pull request as ready for review February 14, 2025 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant