Closed mcsakoff closed 1 year ago
Also running into this on 1.3.1
Same issue on Monterey (Version 12.1). Like outlined in the solution above the following does work:
func (port *unixPort) ResetInputBuffer() error { return unix.IoctlSetPointerInt(port.handle, ioctlTcflsh, unix.TCIFLUSH) }
func (port *unixPort) ResetOutputBuffer() error { return unix.IoctlSetPointerInt(port.handle, ioctlTcflsh, unix.TCOFLUSH) }
Would you accept a pull request of
being part of the serial_$GOOS.go files for the 'unix based' implementations?
Fails with
bad address
.Tested on Catalina (0.15.7 (19H15)) and BigSur (11.0.1 (20B29)). Versions checked: v1.1.1, v1.1.0, v1.0.0.