Skip to content

Conversation

jalius
Copy link

@jalius jalius commented May 20, 2025

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

jalius commented Jun 25, 2025

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

@twpayne
Copy link
Contributor

twpayne commented Jun 25, 2025

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

@fbettag
Copy link
Contributor

fbettag commented Jul 12, 2025

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

looks reasonable.

@deadprogram
Copy link
Contributor

Why not use B115200 as default value?

@jalius
Copy link
Author

jalius commented Jul 17, 2025

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
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