diff --git a/serial_posix.go b/serial_posix.go index 198d6bc..b429223 100644 --- a/serial_posix.go +++ b/serial_posix.go @@ -47,6 +47,10 @@ func openPort(name string, baud int) (rwc io.ReadWriteCloser, err error) { speed = C.B19200 case 9600: speed = C.B9600 + case 4800: + speed = C.B4800 + case 2400: + speed = C.B2400 default: f.Close() return nil, fmt.Errorf("Unknown baud rate %v", baud)