]> sigrok.org Git - libsigrok.git/commitdiff
lascar-el-usb: Fix copy-paste errors.
authorUwe Hermann <redacted>
Thu, 10 Sep 2015 16:52:15 +0000 (18:52 +0200)
committerUwe Hermann <redacted>
Tue, 15 Sep 2015 09:20:57 +0000 (11:20 +0200)
src/hardware/lascar-el-usb/api.c
src/hardware/lascar-el-usb/protocol.c

index ba906e07a8f59b793d4846d814e3f81e51551aec..c8938f21ac3e9d36d1edb81821f0c1b164fdf5a0 100644 (file)
@@ -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);
index 24e85e5c54918466bce107b08697bfa9157e1fba..1437773c502cfbbc30ddd9e1c8becec4f5d25981 100644 (file)
@@ -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)