go-serial icon indicating copy to clipboard operation
go-serial copied to clipboard

Switch to syscall.Open on Darwin

Open jc-m opened this issue 7 years ago • 2 comments

This resolve the high cpu caused by os.OpenFile as described here: https://github.com/golang/go/issues/22099

jc-m avatar Feb 09 '18 23:02 jc-m

I'll look at your comments, but right now, it seems that there are other issues like some of the flags not being set in termios. Still trying to debug.

jc-m avatar Feb 15 '18 20:02 jc-m

For example, the termios struct you define has a byte array of 20, which is not aligned on 64 bits. This is why the unix.termios has a padding array of 4 bytes. One the issues I see for example is that rtscts doesn't get applied to the serial port.

jc-m avatar Feb 15 '18 20:02 jc-m