From: Bert Vermeulen Date: Sun, 16 Aug 2015 18:02:21 +0000 (+0200) Subject: scpi/usbtmc: Use sr_usb_close(). X-Git-Tag: libsigrok-0.4.0~392 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0b2b92f6c3db384cad10e3229e3fa149fc429ef4;p=libsigrok.git scpi/usbtmc: Use sr_usb_close(). --- diff --git a/src/scpi/scpi_usbtmc_libusb.c b/src/scpi/scpi_usbtmc_libusb.c index caf17e7e..b7892436 100644 --- a/src/scpi/scpi_usbtmc_libusb.c +++ b/src/scpi/scpi_usbtmc_libusb.c @@ -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; }