fix ledger x on macos 14

This commit is contained in:
Felipe Andrade 2023-11-11 18:40:20 -08:00
parent f265cc24b4
commit 0d45f50303

View file

@ -18,6 +18,7 @@ package usbwallet
import (
"errors"
"fmt"
"runtime"
"sync"
"sync/atomic"
@ -93,7 +94,7 @@ func NewLedgerHub() (*Hub, error) {
0x4011, /* HID + WebUSB Ledger Nano X */
0x5011, /* HID + WebUSB Ledger Nano S Plus */
0x6011, /* HID + WebUSB Ledger Nano FTS */
}, 0xffa0, 0, newLedgerDriver)
}, 0, 2, newLedgerDriver)
}
// NewTrezorHubWithHID creates a new hardware wallet manager for Trezor devices.
@ -183,6 +184,8 @@ func (hub *Hub) refreshWallets() {
}
hub.enumFails.Store(0)
fmt.Printf("enumerate: %#v", infos)
for _, info := range infos {
for _, id := range hub.productIDs {
// Windows and Macos use UsageID matching, Linux uses Interface matching