Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrgodsey committed Jul 22, 2020
1 parent acf5782 commit 18c8804
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions serial_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ func openPort(name string, baud int, databits byte, parity Parity, stopbits Stop
unix.Syscall(
unix.SYS_IOCTL,
uintptr(fd),
uintptr(unix.TIOCMBIS), // set DTR pin
uintptr(unsafe.Pointer(&dtrFlag)))
unix.Syscall(
unix.SYS_IOCTL,
uintptr(fd),
uintptr(unix.TIOCMBIC), // clear DTR pin
uintptr(unix.TIOCMBIS), // set/raise DTR pin
uintptr(unsafe.Pointer(&dtrFlag)))
/*unix.Syscall(
unix.SYS_IOCTL,
uintptr(fd),
uintptr(unix.TIOCMBIC), // clear/lower DTR pin
uintptr(unsafe.Pointer(&dtrFlag)))*/

if _, _, errno := unix.Syscall6(
unix.SYS_IOCTL,
Expand Down

0 comments on commit 18c8804

Please sign in to comment.