]> sigrok.org Git - libserialport.git/commitdiff
Fix swapped DCD & RI signals on Windows.
authorMartin Ling <redacted>
Sat, 23 Nov 2013 11:59:42 +0000 (11:59 +0000)
committerMartin Ling <redacted>
Sat, 23 Nov 2013 11:59:42 +0000 (11:59 +0000)
serialport.c

index 4b25eafa08af70f70f5c280303d72d2d06c67a84..3a89609af2585338b8438c3b0e5f026adc5e0998 100644 (file)
@@ -1516,9 +1516,9 @@ enum sp_return sp_get_signals(struct sp_port *port, enum sp_signal *signals)
                *signals |= SP_SIG_CTS;
        if (bits & MS_DSR_ON)
                *signals |= SP_SIG_DSR;
-       if (bits & MS_RING_ON)
-               *signals |= SP_SIG_DCD;
        if (bits & MS_RLSD_ON)
+               *signals |= SP_SIG_DCD;
+       if (bits & MS_RING_ON)
                *signals |= SP_SIG_RI;
 #else
        int bits;