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

Merged
merged 1 commit into from
Feb 17, 2025
Merged

Split UART errors #3138

merged 1 commit into from
Feb 17, 2025

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
Copy link
Contributor

@JurajSadel JurajSadel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@MabezDev MabezDev added this pull request to the merge queue Feb 17, 2025
Merged via the queue into esp-rs:main with commit 0008bf5 Feb 17, 2025
27 checks passed
@bugadani bugadani deleted the uart branch February 17, 2025 12:38
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.

3 participants