-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix device discovery in NitrokeyManager::connect_with_path
The device discovery in NitrokeyManager's connect_with_path method is broken. It tries to statically determine the vendor ID by using the first working HID pointer. That's obviously not working when a both a Nitrokey device and Librem Key are connected and the path is describing a Librem Key. In such a case the vendor ID used would be that for the Nitrokey and we would not be able to find the Librem Key at all. This change fixes up the logic.
- Loading branch information
Showing
1 changed file
with
31 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters