bugst / go-serial

A cross-platform serial library for go-lang.
BSD 3-Clause "New" or "Revised" License
622 stars 191 forks source link

New method for flushing serial buffers #29

Closed albenik closed 7 years ago

albenik commented 7 years ago

Names of methods got from similar methods in pyserial

Additionally changes:

  1. Using mksyscall_windows.go from $GOROOT instead of local one.
  2. Added go-1.8.x to Travis config because go1.8 already released
  3. Migrated from syscall to golang.org/x/sys/unix for unix related codebase to keep code structure consistent while using unix.TCFLSH/unix.TIOCFLUSH constants which is missing in syscall.
cmaglie commented 7 years ago

Thanks!

I'm doing a bunch of tests before merging but so far so good, everything looks fine.