bugst / go-serial

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

Windows: Set DTS via setCommState #36

Closed niondir closed 6 years ago

niondir commented 6 years ago

https://github.com/bugst/go-serial/issues/35

cmaglie commented 6 years ago

Hi @Niondir I've reproduced the bug and tested that your fix works, thank you!

May I ask you to put the GetDTR() and GetRTS() methods into another PR? I'd like to have those methods as part of GetModemStatusBits(), but better to move the discussion on another PR, so I can merge the SetRTS bugfix in the meantime.

niondir commented 6 years ago

Here we go, I will provide another request to extend the GetModemStatusBits() method for windows