fixed indent
This commit is contained in:
@@ -232,17 +232,17 @@ func OpenPort(portName string, exclusive bool) (SerialPort, error) {
|
||||
settings.c_oflag &= ^C.tcflag_t(C.OPOST)
|
||||
|
||||
// Block reads until at least one char is available (no timeout)
|
||||
settings.c_cc[C.VMIN] = 1;
|
||||
settings.c_cc[C.VTIME] = 0;
|
||||
settings.c_cc[C.VMIN] = 1
|
||||
settings.c_cc[C.VTIME] = 0
|
||||
|
||||
err = setTermSettings(handle, settings)
|
||||
if err != nil {
|
||||
syscall.Close(handle)
|
||||
return nil, &SerialPortError{code: ERROR_INVALID_SERIAL_PORT}
|
||||
}
|
||||
/*
|
||||
/*
|
||||
settings->c_cflag &= ~CRTSCTS;
|
||||
*/
|
||||
*/
|
||||
syscall.SetNonblock(handle, false)
|
||||
|
||||
if exclusive {
|
||||
|
||||
Reference in New Issue
Block a user