libusb_ll,ftdipp_mpsse: Bus and Device must be both == 0 to use filter or uses VID/PID

This commit is contained in:
Gwenhael Goavec-Merou
2025-05-24 07:46:58 +02:00
parent 6c4dbe94cc
commit 10ba59c1ec
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ void FTDIpp_MPSSE::open_device(const std::string &serial, unsigned int baudrate)
throw std::runtime_error(err);
}
if (_bus == 0 || _addr == 0)
if (_bus == 0 && _addr == 0)
ret = ftdi_usb_open_desc_index(_ftdi, _vid, _pid, NULL, serial.empty() ? NULL : serial.c_str(), _index);
else
#if (FTDI_VERSION < 104)