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

win32: Avoid calling SetCommState() when there are no configuration c… #720

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hanada-at
Copy link

…hanges

win32.SetCommState() is always called in the method _reconfigure_port. _reconfigure_port is used when changing timeout, but data corruption may occur in SetCommState() at this time.
Similar to the serialposix.py implementation, avoid calling SetCommState() when there are no configuration changes.

See https://electronics.stackexchange.com/questions/479343/frame-errors-character-stretching-of-cp2102n

…hanges

win32.SetCommState() is always called in the method _reconfigure_port.
_reconfigure_port is used when changing timeout, but data corruption may
occur in SetCommState() at this time.
Similar to the serialposix.py implementation, avoid calling SetCommState()
when there are no configuration changes.

See https://electronics.stackexchange.com/questions/479343/frame-errors-character-stretching-of-cp2102n
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

1 participant