Skip to content

Commit bbd0159

Browse files
authored
Fix applyModemBitsStatus (unix) (#42)
Use IoctlSetPointerInt instead of IoctlSetInt closes #41
1 parent 9b94bc9 commit bbd0159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

serial_unix.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ func (p *Port) retrieveModemBitsStatus() (int, error) {
382382
}
383383

384384
func (p *Port) applyModemBitsStatus(status int) error {
385-
if err := unix.IoctlSetInt(p.internal.handle, unix.TIOCMSET, status); err != nil {
385+
if err := unix.IoctlSetPointerInt(p.internal.handle, unix.TIOCMSET, status); err != nil {
386386
return newPortOSError(err)
387387
}
388388
return nil

0 commit comments

Comments
 (0)