bugst / go-serial

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

Added support for sending breaks #137

Closed pho closed 1 year ago

pho commented 2 years ago

I added support for sending an arbitrary length break signal

Linux has a TCSBRKP ioctl which does it in a single ioctl but all the other unixes did not support it, so I used TIOCSBRK/TIOCCBRK instead

I've only tested it on Linux with a logic analyzer and its working fine. Windows support has not been added

calliday commented 1 year ago

Great solution. What more needs to be done to merge this branch? Do the project contributors prefer having Windows support before this is merged?

cmaglie commented 1 year ago

Thanks for the patch!

This PR has been included in #145