public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [PATCH] SERIAL: Fix a copy-paste error in DTR setup
@ 2022-11-29  9:11 Carlo B.
  2022-11-29 15:02 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Carlo B. @ 2022-11-29  9:11 UTC (permalink / raw)
  To: The Cygwin Mailing List

[-- Attachment #1: Type: text/plain, Size: 320 bytes --]

Hello,
In commit 2dab880c963ce0204c3513d664f610b587a3e6a6 I did a mistake
when I copied the new fhandler_serial::switch_modem_lines() from my
modified 3.3.6 branch to the current master and I left a copy paste
error that I corrected later. This patch fixes that error.

Sorry for the trouble.
Sincerely,

Carlo Bramini.

[-- Attachment #2: 0001-SERIAL-Fix-a-copy-paste-error-in-DTR-setup.patch --]
[-- Type: application/octet-stream, Size: 1236 bytes --]

From 29df6b2bf87569e016e688fbaaeb2a3773f9094d Mon Sep 17 00:00:00 2001
From: Carlo Bramini <30959007+carlo-bramini@users.noreply.github.com>
Date: Tue, 29 Nov 2022 10:02:43 +0100
Subject: [PATCH] SERIAL: Fix a copy-paste error in DTR setup

In commit 2dab880c963ce0204c3513d664f610b587a3e6a6 I did a mistake when I copied the new fhandler_serial::switch_modem_lines() from my modified 3.3.6 branch to the current master and I left a copy paste error. This patch fixes that error.
---
 winsup/cygwin/fhandler/serial.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/winsup/cygwin/fhandler/serial.cc b/winsup/cygwin/fhandler/serial.cc
index 58a8df677..e04f8f263 100644
--- a/winsup/cygwin/fhandler/serial.cc
+++ b/winsup/cygwin/fhandler/serial.cc
@@ -411,10 +411,10 @@ fhandler_serial::switch_modem_lines (int set, int clr)
         dcb.fRtsControl = RTS_CONTROL_DISABLE;
 
       if (set & TIOCM_DTR)
-        dcb.fRtsControl = DTR_CONTROL_ENABLE;
+        dcb.fDtrControl = DTR_CONTROL_ENABLE;
       else
       if (clr & TIOCM_DTR)
-        dcb.fRtsControl = DTR_CONTROL_DISABLE;
+        dcb.fDtrControl = DTR_CONTROL_DISABLE;
 
       if (!SetCommState(get_handle(), &dcb))
         {
-- 
2.38.1.windows.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] SERIAL: Fix a copy-paste error in DTR setup
  2022-11-29  9:11 [PATCH] SERIAL: Fix a copy-paste error in DTR setup Carlo B.
@ 2022-11-29 15:02 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2022-11-29 15:02 UTC (permalink / raw)
  To: Carlo B.; +Cc: The Cygwin Mailing List

On Nov 29 10:11, Carlo B. wrote:
> Hello,
> In commit 2dab880c963ce0204c3513d664f610b587a3e6a6 I did a mistake
> when I copied the new fhandler_serial::switch_modem_lines() from my
> modified 3.3.6 branch to the current master and I left a copy paste
> error that I corrected later. This patch fixes that error.
> 
> Sorry for the trouble.

No worries, pushed (with changes to the commit message).


Thanks,
Corinna

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-29 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-29  9:11 [PATCH] SERIAL: Fix a copy-paste error in DTR setup Carlo B.
2022-11-29 15:02 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).