mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-29 18:42:07 +08:00
Panda::list: remove call to libusb_release_interface (#22157)
old-commit-hash: c61e7c7898256896b44a48a5094125aa542eee4b
This commit is contained in:
@@ -130,7 +130,6 @@ std::vector<std::string> Panda::list() {
|
||||
libusb_open(device, &handle);
|
||||
unsigned char desc_serial[26] = { 0 };
|
||||
int ret = libusb_get_string_descriptor_ascii(handle, desc.iSerialNumber, desc_serial, std::size(desc_serial));
|
||||
libusb_release_interface(handle, 0);
|
||||
libusb_close(handle);
|
||||
|
||||
if (ret < 0) { goto finish; }
|
||||
|
||||
Reference in New Issue
Block a user