From 0b2b92f6c3db384cad10e3229e3fa149fc429ef4 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Sun, 16 Aug 2015 20:02:21 +0200 Subject: [PATCH] scpi/usbtmc: Use sr_usb_close(). --- src/scpi/scpi_usbtmc_libusb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }