bugst / go-serial

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

Use golang.org/x/sys/unix provided ioctl functions #87

Closed maddie closed 3 years ago

maddie commented 3 years ago

Tries to fix #86

maddie commented 3 years ago

Please let me know if this is not the correct way to use these functions, I'm not 100% sure about them.

cmaglie commented 3 years ago

Thanks @maddie for the PR!

We recently had a similar issue in our macOS builder for the arduino-cli, so this PR is very welcome and comes at the right time.

At a first glance, the PR looks good and ready to be merged, BTW give me some time to do some tests on real hardware to see if the syscalls are still working as expected.