diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2020-06-13 12:21:44 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2020-06-13 13:44:31 +0200 |
commit | 444a6cb764fbcea3c91ae936b1c76a190f935b10 (patch) | |
tree | e71db7c62a71bbe62054adc43ccc707a751e8fcd /NitrokeyManager.cc | |
parent | 4200af146a17398dc7050c92e1f861f2066debec (diff) | |
download | libnitrokey-444a6cb764fbcea3c91ae936b1c76a190f935b10.tar.gz libnitrokey-444a6cb764fbcea3c91ae936b1c76a190f935b10.tar.bz2 |
Revert API change
Remove the change to keep binary compatibility.
Use the vendor_id field from the dev description.
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r-- | NitrokeyManager.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc index d874dca..71d156f 100644 --- a/NitrokeyManager.cc +++ b/NitrokeyManager.cc @@ -230,7 +230,7 @@ using nitrokey::misc::strcpyT; misc::Option<DeviceModel> model; while (info_ptr && !model.has_value()) { if (path == std::string(info_ptr->path)) { - model = product_id_to_model(vendor_id, info_ptr->product_id); + model = product_id_to_model(info_ptr->vendor_id, info_ptr->product_id); } info_ptr = info_ptr->next; } |