From 2869db7580c4757b94fb2930467838e55b3dd86b Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Thu, 16 Feb 2023 08:00:39 +0100 Subject: [PATCH] libusb_ll: fix typo in scan method --- src/libusb_ll.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libusb_ll.cpp b/src/libusb_ll.cpp index 1b3a453..f56efff 100644 --- a/src/libusb_ll.cpp +++ b/src/libusb_ll.cpp @@ -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; }