You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libusb_open_device_with_vid_pid(ctx, usb_vid, usb_pid,0);
libusb_open_device_with_vid_pid(ctx, usb_vid, usb_pid,1);
This is more convenient.what do you think?
The text was updated successfully, but these errors were encountered:
I agree. There will be some degree of nondeterminism with the ordering of devices in the device list. You can always get the device list and run through it yourself.
Going to close this for now. The libusb_open_device_with_vid_pid() function is really meant for applications that want a simplified way of opening a specific device when there will only be one such device connected. As mentioned, there is too much non-determinism in how the devices are enumerated that the value of the proposed function is questionable.
libusb_open_device_with_vid_pid(ctx, usb_vid, usb_pid,0);
libusb_open_device_with_vid_pid(ctx, usb_vid, usb_pid,1);
This is more convenient.what do you think?
The text was updated successfully, but these errors were encountered: