]> sigrok.org Git - libsigrok.git/commitdiff
serial.c: Fix copy-paste error.
authorUwe Hermann <redacted>
Mon, 21 Jan 2013 00:47:30 +0000 (01:47 +0100)
committerUwe Hermann <redacted>
Mon, 21 Jan 2013 00:47:30 +0000 (01:47 +0100)
Thanks Bert Vermeulen for reporting.

hardware/common/serial.c

index fa5146d719dfcd45b780b514d5f9dc0ad8e59cc4..4ac342f06d9b6e63273a34ecdfa4aa4bf3279bac 100644 (file)
@@ -422,7 +422,7 @@ SR_PRIV int serial_set_params(struct sr_serial_dev_inst *serial, int baudrate,
 
        if (dtr != -1) {
                sr_spew("Setting DTR %s.", dtr ? "high" : "low");
-               if (rts)
+               if (dtr)
                        dcb.fDtrControl = DTR_CONTROL_ENABLE;
                else
                        dcb.fDtrControl = DTR_CONTROL_DISABLE;