Skip to content

Commit

Permalink
Add a few more posix baud rates
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarmigan Casebolt committed Apr 29, 2011
1 parent b2760d2 commit 4746335
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions serial_posix.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ func OpenPort(name string, baud int) (rwc io.ReadWriteCloser, err os.Error) {
switch baud {
case 115200:
speed = C.B115200
case 76800:
speed = C.B76800
case 57600:
speed = C.B57600
case 38400:
speed = C.B38400
case 19200:
speed = C.B19200
case 9600:
Expand Down

0 comments on commit 4746335

Please sign in to comment.