From d3ff2052b25dbc52aa3e2d7bc9e3f947f523059e Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Tue, 14 Jan 2025 08:33:19 +0000 Subject: [PATCH] Add note about DTR behavior on linux --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 158fdef..fbc7ab8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -396,6 +396,10 @@ impl SerialPortBuilder { } /// Set data terminal ready (DTR) to the given state when opening the device + /// + /// Note: On Linux, DTR is automatically set on open. Even if you set `dtr_on_open` to false, + /// DTR will be asserted for a short moment when opening the port. This can't be prevented + /// without kernel modifications. #[must_use] pub fn dtr_on_open(mut self, state: bool) -> Self { self.dtr_on_open = Some(state);