scpi/usbtmc: Use sr_usb_close().

This commit is contained in:
Bert Vermeulen 2015-08-16 20:02:21 +02:00 committed by Uwe Hermann
parent 67e95ed37d
commit 0b2b92f6c3
1 changed files with 1 additions and 2 deletions

View File

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