On Sat, Oct 12, 2013 at 08:52:54PM +0100, Sean Young wrote:
> ---
>  hardware/saleae-logic16/api.c | 40 +++++++++++++++++++---------------------
>  1 file changed, 19 insertions(+), 21 deletions(-)
> 
> diff --git a/hardware/saleae-logic16/api.c b/hardware/saleae-logic16/api.c
> index a12143a..c0c4b62 100644
> --- a/hardware/saleae-logic16/api.c
> +++ b/hardware/saleae-logic16/api.c
> @@ -308,6 +308,25 @@ static int logic16_dev_open(struct sr_dev_inst *sdi)
>                       break;
>               }
>  
> +             ret = libusb_claim_interface(usb->devhdl, USB_INTERFACE);

I should've explained that this is to prevent the kernel from spitting
out messages like:

[ 7461.925685] usb 2-4: usbfs: process 11303 (sigrok-cli) did not claim
+interface 0 before use


Sean

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to