When calling hidapi.open(device_info.vendor_id(), device_info.product_id())?;when multiple devices with the same vendor/product ID are connected, hidapi will always return the first one.
The correct way to get the device is by calling device_info.open_device(hidapi)?;. This will use the device path or fallback to using the serial.
When calling
hidapi.open(device_info.vendor_id(), device_info.product_id())?;
when multiple devices with the same vendor/product ID are connected, hidapi will always return the first one.The correct way to get the device is by calling
device_info.open_device(hidapi)?;
. This will use the device path or fallback to using the serial.closes #15