Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
support ledger nano x
Browse files Browse the repository at this point in the history
  • Loading branch information
lhy committed May 14, 2019
1 parent 1e64b51 commit 6d4c925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ledger.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func FindLedger() (*Ledger, error) {

for _, d := range devices {
deviceFound := d.UsagePage == UsagePageLedger
deviceFound = deviceFound || (d.Product == "Nano S" && d.Interface == 0)
deviceFound = deviceFound || (d.Interface == 0 && (d.Product == "Nano S" || d.Product == "Nano X" ) )

if deviceFound {
device, err := d.Open()
Expand Down

0 comments on commit 6d4c925

Please sign in to comment.