File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ struct PrintBusAndDevice
107
107
108
108
std::ostream &operator <<(std::ostream &out, const PrintBusAndDevice& dev)
109
109
{
110
- out << " @" << int (libusb_get_bus_number (dev.dev_ )) << " :" << int (libusb_get_port_number (dev.dev_ ));
110
+ out << " @" << int (libusb_get_bus_number (dev.dev_ )) << " :" << int (libusb_get_device_address (dev.dev_ ));
111
111
return out;
112
112
}
113
113
@@ -351,12 +351,12 @@ bool Freenect2DeviceImpl::isSameUsbDevice(libusb_device* other)
351
351
if (state_ != Closed && usb_device_ != 0 )
352
352
{
353
353
unsigned char bus = libusb_get_bus_number (usb_device_);
354
- unsigned char port = libusb_get_port_number (usb_device_);
354
+ unsigned char address = libusb_get_device_address (usb_device_);
355
355
356
356
unsigned char other_bus = libusb_get_bus_number (other);
357
- unsigned char other_port = libusb_get_port_number (other);
357
+ unsigned char other_address = libusb_get_device_address (other);
358
358
359
- result = (bus == other_bus) && (port == other_port );
359
+ result = (bus == other_bus) && (address == other_address );
360
360
}
361
361
362
362
return result;
You can’t perform that action at this time.
0 commit comments