1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

Fix swapped DCD & RI signals on Windows.

This commit is contained in:
Martin Ling 2013-11-23 11:59:42 +00:00
parent 6b93ede419
commit a6cda1e8c7

View 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;