From 3099149a031a72dcd4b85593c5eceadeb4d0b111 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Sat, 3 Sep 2022 18:04:47 +0200 Subject: [PATCH] Added a doc notice for posix 'pulse' problem --- serial.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/serial.go b/serial.go index 43f0f74..e072d42 100644 --- a/serial.go +++ b/serial.go @@ -64,6 +64,9 @@ type ModemStatusBits struct { // ModemOutputBits contains all the modem output bits for a serial port. // This is used in the Mode.InitialStatusBits struct to specify the initial status of the bits. +// Note: Linux and MacOSX (and basically all unix-based systems) can not set the status bits +// before opening the port, even if the initial state of the bit is set to false they will go +// anyway to true for a few milliseconds, resulting in a small pulse. type ModemOutputBits struct { RTS bool // ReadyToSend status DTR bool // DataTerminalReady status