bugst / go-serial

A cross-platform serial library for go-lang.
BSD 3-Clause "New" or "Revised" License
617 stars 188 forks source link

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

Closed palazzol closed 1 year ago

palazzol commented 1 year ago

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

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

cmaglie commented 1 year ago

I've included your commit in #147.