From: Uwe Hermann Date: Thu, 10 Sep 2015 16:52:15 +0000 (+0200) Subject: lascar-el-usb: Fix copy-paste errors. X-Git-Tag: libsigrok-0.4.0~287 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9851d35b0aa4745f93a4812af8f25d21de041020;p=libsigrok.git lascar-el-usb: Fix copy-paste errors. --- diff --git a/src/hardware/lascar-el-usb/api.c b/src/hardware/lascar-el-usb/api.c index ba906e07..c8938f21 100644 --- a/src/hardware/lascar-el-usb/api.c +++ b/src/hardware/lascar-el-usb/api.c @@ -416,7 +416,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) libusb_handle_events_timeout(drvc->sr_ctx->libusb_ctx, &tv); } if (xfer_in->user_data != GINT_TO_POINTER(1) || - xfer_in->user_data != GINT_TO_POINTER(1)) { + xfer_out->user_data != GINT_TO_POINTER(1)) { sr_dbg("no response to log transfer request"); libusb_free_transfer(xfer_in); libusb_free_transfer(xfer_out); diff --git a/src/hardware/lascar-el-usb/protocol.c b/src/hardware/lascar-el-usb/protocol.c index 24e85e5c..1437773c 100644 --- a/src/hardware/lascar-el-usb/protocol.c +++ b/src/hardware/lascar-el-usb/protocol.c @@ -183,7 +183,7 @@ SR_PRIV int lascar_get_config(libusb_device_handle *dev_hdl, *configlen = buflen; cleanup: - if (!xfer_in->user_data || !xfer_in->user_data) { + if (!xfer_in->user_data || !xfer_out->user_data) { if (!xfer_in->user_data) libusb_cancel_transfer(xfer_in); if (!xfer_out->user_data) @@ -269,7 +269,7 @@ static int lascar_save_config(libusb_device_handle *dev_hdl, } cleanup: - if (!xfer_in->user_data || !xfer_in->user_data) { + if (!xfer_in->user_data || !xfer_out->user_data) { if (!xfer_in->user_data) libusb_cancel_transfer(xfer_in); if (!xfer_out->user_data)