From: Martin Ling Date: Sat, 23 Nov 2013 11:59:42 +0000 (+0000) Subject: Fix swapped DCD & RI signals on Windows. X-Git-Tag: libserialport-0.1.0~60 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a6cda1e8c71f08eee9bdeb862e26d7d4b943e997;p=libserialport.git Fix swapped DCD & RI signals on Windows. --- diff --git a/serialport.c b/serialport.c index 4b25eaf..3a89609 100644 --- a/serialport.c +++ b/serialport.c @@ -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;