Skip to content

Address Non-Standard Baud Rate Caching#208

Open
jalius wants to merge 1 commit into
bugst:masterfrom
jalius:master
Open

Address Non-Standard Baud Rate Caching#208
jalius wants to merge 1 commit into
bugst:masterfrom
jalius:master

Conversation

@jalius

@jalius jalius commented May 20, 2025

Copy link
Copy Markdown

Addresses #207.

Fixes a case where read-modify-write of serial settings fails in serial.Open() and serial.Port.SetMode() when a non-standard baud rate is returned by the OS via getTermSettings, ultimately causing setTermSettings to fail with EINVAL.

@jalius

jalius commented Jun 25, 2025

Copy link
Copy Markdown
Author

@deadprogram @twpayne @fbettag @pho @cmaglie
Does this PR look reasonable? Anyone on a Mac? More details in #207

@twpayne

twpayne commented Jun 25, 2025

Copy link
Copy Markdown
Contributor

@jalius why are you @-mentioning me? I can subscribe to the notifications that I'm interested in, so why spam me?

@fbettag

fbettag commented Jul 12, 2025

Copy link
Copy Markdown
Contributor

@deadprogram @twpayne @fbettag @pho @cmaglie Does this PR look reasonable? Anyone on a Mac? More details in #207

looks reasonable.

@deadprogram

Copy link
Copy Markdown
Contributor

Why not use B115200 as default value?

@jalius

jalius commented Jul 17, 2025

Copy link
Copy Markdown
Author

Why not use B115200 as default value?

I don't have a strong opinion on this. Can we make a strong case for either value as a default? In the end, the value is overwritten by the subsequent syscall in setSpecialBaudRate.

@deadprogram

Copy link
Copy Markdown
Contributor

Why not use B115200 as default value?

I don't have a strong opinion on this. Can we make a strong case for either value as a default? In the end, the value is overwritten by the subsequent syscall in setSpecialBaudRate.

It just was a value that was unexpected, which caught my eye. No particular reason.

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.

4 participants