From: Daniel Elstner Date: Fri, 27 Nov 2015 20:26:13 +0000 (+0100) Subject: sysclk-lwla: Remove double USB set configuration X-Git-Tag: libsigrok-0.4.0~99 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=567674b4f8a71ff369fad9a31f7d9db00abbd6bc;p=libsigrok.git sysclk-lwla: Remove double USB set configuration This was a pointless attempt to make the reset hiccups go away. It didn't help, the problem must be something else. --- diff --git a/src/hardware/sysclk-lwla/api.c b/src/hardware/sysclk-lwla/api.c index d093430d..7dfd7582 100644 --- a/src/hardware/sysclk-lwla/api.c +++ b/src/hardware/sysclk-lwla/api.c @@ -274,11 +274,7 @@ static int dev_open(struct sr_dev_inst *sdi) if (ret != SR_OK) return ret; - /* Set the configuration twice to trigger a lightweight reset. - */ ret = libusb_set_configuration(usb->devhdl, USB_CONFIG); - if (ret == 0) - ret = libusb_set_configuration(usb->devhdl, USB_CONFIG); if (ret != 0) { sr_err("Failed to set USB configuration: %s.", libusb_error_name(ret));