Skip to content

Commit ecf993b

Browse files
committed
Merge branch 'fix-device-enumeration'
Add missing loop break Fixes #195
2 parents a9e2ac0 + 20e5364 commit ecf993b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

device.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ namespace {
234234
auto pInfo_ = pInfo;
235235
while (pInfo != nullptr){
236236
if (pInfo->path == nullptr || pInfo->serial_number == nullptr) {
237+
pInfo = pInfo->next;
237238
continue;
238239
}
239240
auto deviceModel = product_id_to_model(vendor_id, pInfo->product_id);

0 commit comments

Comments
 (0)