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

Remove unnecessary code, originally for checking for disconnects when using non-overlapped I/O #144

Closed
wants to merge 1 commit into from

Conversation

palazzol
Copy link
Contributor

getOverlappedEvent() returns all required error codes. Calling getCommState()/setCommState() every second in some applications contributes to other downstream issues.

For examples:
#60 (comment)
https://github.com/bugst/go-serial/issues/60#issuecomment-625749122

Remove unnecessary code, originally for checking for disconnects when using non-overlapped I/O.  getOverlappedEvent() returns all required error codes.  Calling getCommState()/setCommState() every second in some applications contributes to other downstream issues.  For examples:
bugst#60 (comment)
arduino/arduino-ide#375
@cmaglie
Copy link
Member

cmaglie commented Nov 24, 2022

I've included your commit in #147.

@cmaglie cmaglie closed this Nov 24, 2022
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