]> sigrok.org Git - libsigrok.git/commitdiff
scpi/usbtmc: Use sr_usb_close().
authorBert Vermeulen <redacted>
Sun, 16 Aug 2015 18:02:21 +0000 (20:02 +0200)
committerUwe Hermann <redacted>
Tue, 25 Aug 2015 17:13:17 +0000 (19:13 +0200)
src/scpi/scpi_usbtmc_libusb.c

index caf17e7ec77d83e347c94ac778e50c3d3425e23d..b7892436899aad14f54be6515c1f0d958157b69d 100644 (file)
@@ -554,8 +554,7 @@ static int scpi_usbtmc_libusb_close(void *priv)
 
                uscpi->detached_kernel_driver = 0;
        }
-       libusb_close(usb->devhdl);
-       usb->devhdl = NULL;
+       sr_usb_close(usb);
 
        return SR_OK;
 }