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

Don't ignore errors from setting baud rates #213

Merged

Conversation

sirhcel
Copy link
Contributor

@sirhcel sirhcel commented Aug 30, 2024

A chat a while ago led to the discovery that we are currently silently ignoring attempts to set an unsupported baud rate on Linux/musl.

This PR changes the behavior to report an error in this case.

Even though this does not add the support, it will no longer keep users in the dark about this issue like it likely happened in #156.

"Don't you think we should tell them that this baud rate is not
supported? Nah. Just smile and wave boys smile, smile and wave." While
this makes great movies, this does not make setting a knowingly
unsupported baud rate a great experience. At least when in comes to
debugging.

Play nice and report this and other errors related to baud rates back.
@sirhcel sirhcel requested a review from eldruin August 30, 2024 21:45
@sirhcel sirhcel changed the title Don't ignore results from setting baud rates Don't ignore errors from setting baud rates Aug 30, 2024
Copy link
Contributor

@eldruin eldruin left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you!

@eldruin eldruin merged commit dc8276a into serialport:main Aug 31, 2024
30 checks passed
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.

2 participants