libusb_ll: fix typo in scan method

This commit is contained in:
Gwenhael Goavec-Merou 2023-02-16 08:00:39 +01:00
parent 391dcb3dee
commit 2869db7580
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ bool libusb_ll::scan()
// FIXME: DFU device can't be detected here
for (auto b = cable_list.begin(); b != cable_list.end(); b++) {
cable_t *c = &(*b).second;
if (c->vid == desc.idVendor && c->vid == desc.idProduct) {
if (c->vid == desc.idVendor && c->pid == desc.idProduct) {
snprintf(probe_type, 256, "%s", (*b).first.c_str());
found = true;
}