Need to disable DTR on serial port
Mike McCormack
mike at codeweavers.com
Mon Apr 12 02:26:14 CDT 2004
Geoffrey Hausheer wrote:
> In any case, it turns out that one of the many requirements to get the
> watch to respond is to have DTR disabled (done by setting fDtrControl =
> DTR_CONTROL_DISABLE). But apparently the default for linux is
> DTR_CONTROL_ENABLE, and Wine will ignore any requests to change it
> (DTR_CONTROL_HANDSHAKE being unimplemented as well)
Does this help?
Mike
-------------- next part --------------
Index: dlls/kernel/comm.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/comm.c,v
retrieving revision 1.77
diff -u -r1.77 comm.c
--- dlls/kernel/comm.c 16 Jan 2004 02:21:01 -0000 1.77
+++ dlls/kernel/comm.c 12 Apr 2004 06:32:36 -0000
@@ -1389,6 +1389,14 @@
{
WARN("DSR/DTR flow control not supported\n");
}
+ else if (lpdcb->fDtrControl == DTR_CONTROL_DISABLE)
+ {
+ EscapeCommFunction( handle, CLRDTR );
+ }
+ else if (lpdcb->fDtrControl == DTR_CONTROL_ENABLE)
+ {
+ EscapeCommFunction( handle, SETDTR );
+ }
if (lpdcb->fInX)
port.c_iflag |= IXON;
More information about the wine-devel
mailing list