From: Uwe Hermann Date: Mon, 21 Jan 2013 00:47:30 +0000 (+0100) Subject: serial.c: Fix copy-paste error. X-Git-Tag: dsupstream~339 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=86c02e6554061bf84b5fb7893e5837d26534a6d8;p=libsigrok.git serial.c: Fix copy-paste error. Thanks Bert Vermeulen for reporting. --- diff --git a/hardware/common/serial.c b/hardware/common/serial.c index fa5146d7..4ac342f0 100644 --- a/hardware/common/serial.c +++ b/hardware/common/serial.c @@ -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;