Skip to content

Commit

Permalink
Merge branch 'fix-device-enumeration'
Browse files Browse the repository at this point in the history
Add missing loop break

Fixes Nitrokey#195
  • Loading branch information
szszszsz committed Apr 12, 2021
2 parents a9e2ac0 + 20e5364 commit ecf993b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions device.cc
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ namespace {
auto pInfo_ = pInfo;
while (pInfo != nullptr){
if (pInfo->path == nullptr || pInfo->serial_number == nullptr) {
pInfo = pInfo->next;
continue;
}
auto deviceModel = product_id_to_model(vendor_id, pInfo->product_id);
Expand Down

0 comments on commit ecf993b

Please sign in to comment.