Skip to content

Commit 3099149

Browse files
committed
Added a doc notice for posix 'pulse' problem
1 parent 3c9f142 commit 3099149

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

serial.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ type ModemStatusBits struct {
6464

6565
// ModemOutputBits contains all the modem output bits for a serial port.
6666
// This is used in the Mode.InitialStatusBits struct to specify the initial status of the bits.
67+
// Note: Linux and MacOSX (and basically all unix-based systems) can not set the status bits
68+
// before opening the port, even if the initial state of the bit is set to false they will go
69+
// anyway to true for a few milliseconds, resulting in a small pulse.
6770
type ModemOutputBits struct {
6871
RTS bool // ReadyToSend status
6972
DTR bool // DataTerminalReady status

0 commit comments

Comments
 (0)