Skip to content
Permalink
Browse files

Fix build error in serial_windows.go

- Fix parameter usage in setCommState related to Config struct changes (baud local param is no longer used, changed to c.Baud)
  • Loading branch information...
chaos95 committed Oct 12, 2012
1 parent fc6b24b commit 84ec7da65acc2ab7f34705165066b8d216f9bf79
Showing with 1 addition and 1 deletion.
  1. +1 −1 serial_windows.go
@@ -168,7 +168,7 @@ func setCommState(h syscall.Handle, c *Config) error {
params.flags[0] = 0x01 // fBinary
params.flags[0] |= 0x10 // Assert DSR

params.BaudRate = uint32(baud)
params.BaudRate = uint32(c.Baud)

// Select byte size.
switch c.Size {

0 comments on commit 84ec7da

Please sign in to comment.
You can’t perform that action at this time.