Skip to content

Commit 18c8804

Browse files
committed
test
1 parent acf5782 commit 18c8804

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

serial_linux.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ func openPort(name string, baud int, databits byte, parity Parity, stopbits Stop
7575
unix.Syscall(
7676
unix.SYS_IOCTL,
7777
uintptr(fd),
78-
uintptr(unix.TIOCMBIS), // set DTR pin
79-
uintptr(unsafe.Pointer(&dtrFlag)))
80-
unix.Syscall(
81-
unix.SYS_IOCTL,
82-
uintptr(fd),
83-
uintptr(unix.TIOCMBIC), // clear DTR pin
78+
uintptr(unix.TIOCMBIS), // set/raise DTR pin
8479
uintptr(unsafe.Pointer(&dtrFlag)))
80+
/*unix.Syscall(
81+
unix.SYS_IOCTL,
82+
uintptr(fd),
83+
uintptr(unix.TIOCMBIC), // clear/lower DTR pin
84+
uintptr(unsafe.Pointer(&dtrFlag)))*/
8585

8686
if _, _, errno := unix.Syscall6(
8787
unix.SYS_IOCTL,

0 commit comments

Comments
 (0)