Set CREAD in serial port control flags on linux
cr
@@ -55,7 +55,7 @@ func (sp *SerialPort) openPort(name string) (err error) {
baudRate := uint32(syscall.B115200)
state := syscall.Termios{
- Cflag: syscall.CS8,
+ Cflag: syscall.CS8 | syscall.CREAD | syscall.B115200,
Oflag: 0,
Ospeed: baudRate,
}
