Skip to content

Commit

Permalink
Add 19200
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarmigan Casebolt committed Apr 20, 2011
1 parent 4a29efb commit b650c88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion serial_posix.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ func OpenPort(name string, baud int) (rwc io.ReadWriteCloser, err os.Error) {
switch baud {
case 115200:
speed = C.B115200
case 19200:
speed = C.B19200
case 9600:
speed = C.B9600
default:
Expand Down Expand Up @@ -73,7 +75,7 @@ func OpenPort(name string, baud int) (rwc io.ReadWriteCloser, err os.Error) {
return nil, err
}

fmt.Println("Tweaking", name)
//fmt.Println("Tweaking", name)
r1, _, e := syscall.Syscall(syscall.SYS_FCNTL,
uintptr(f.Fd()),
uintptr(syscall.F_SETFL),
Expand Down

0 comments on commit b650c88

Please sign in to comment.