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

linux: Fix custom baud rate to not temporarily set 38400 baud rates #519

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

tim-nordell-nimbelink
Copy link
Contributor

When using a custom baud rate on Linux these lines of code caused it
to push a 38400 baud rate setting down into the serial driver (even
if temporarily). It would correct this moments later, but we can
simply set the BOTHER value at this point. If other platforms have
a different default value for ispeed and ospeed when using a custom baud
rate, they can define BOTHER as well.

When using a custom baud rate on Linux these lines of code caused it
to push a 38400 baud rate setting down into the serial driver (even
if temporarily).  It would correct this moments later, but we can
simply set the BOTHER value at this point.  If other platforms have
a different default value for ispeed and ospeed when using a custom baud
rate, they can define BOTHER as well.
@zsquareplusc zsquareplusc merged commit e43a771 into pyserial:master Sep 14, 2020
@zsquareplusc
Copy link
Member

Thanks.

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.

None yet

2 participants