Skip to content

Commit

Permalink
Fixed SetRawRead
Browse files Browse the repository at this point in the history
  • Loading branch information
lexszero committed May 1, 2015
1 parent 205bd53 commit d99a128
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions serial_linux.go
Expand Up @@ -300,13 +300,13 @@ func (s *Serial) setCanon(canon bool) error {
return nil
}

func (s *Serial) setRawRead(vmin, vtime int) error {
func (s *Serial) setRawRead(vmin_, vtime_ int) error {
var t termios
if err := s.tcGetAttr(&t); err != nil {
return err
}
t.c_cc[vmin] = cc_t(vmin)
t.c_cc[vtime] = cc_t(vtime)
t.c_cc[vmin] = cc_t(vmin_)
t.c_cc[vtime] = cc_t(vtime_)
if err := s.tcSetAttr(&t); err != nil {
return err
}
Expand Down

0 comments on commit d99a128

Please sign in to comment.