mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
fix ledger x on macos 14
This commit is contained in:
parent
f265cc24b4
commit
0d45f50303
1 changed files with 4 additions and 1 deletions
|
|
@ -18,6 +18,7 @@ package usbwallet
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
"fmt"
|
||||||
"runtime"
|
"runtime"
|
||||||
"sync"
|
"sync"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
|
|
@ -93,7 +94,7 @@ func NewLedgerHub() (*Hub, error) {
|
||||||
0x4011, /* HID + WebUSB Ledger Nano X */
|
0x4011, /* HID + WebUSB Ledger Nano X */
|
||||||
0x5011, /* HID + WebUSB Ledger Nano S Plus */
|
0x5011, /* HID + WebUSB Ledger Nano S Plus */
|
||||||
0x6011, /* HID + WebUSB Ledger Nano FTS */
|
0x6011, /* HID + WebUSB Ledger Nano FTS */
|
||||||
}, 0xffa0, 0, newLedgerDriver)
|
}, 0, 2, newLedgerDriver)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTrezorHubWithHID creates a new hardware wallet manager for Trezor devices.
|
// NewTrezorHubWithHID creates a new hardware wallet manager for Trezor devices.
|
||||||
|
|
@ -183,6 +184,8 @@ func (hub *Hub) refreshWallets() {
|
||||||
}
|
}
|
||||||
hub.enumFails.Store(0)
|
hub.enumFails.Store(0)
|
||||||
|
|
||||||
|
fmt.Printf("enumerate: %#v", infos)
|
||||||
|
|
||||||
for _, info := range infos {
|
for _, info := range infos {
|
||||||
for _, id := range hub.productIDs {
|
for _, id := range hub.productIDs {
|
||||||
// Windows and Macos use UsageID matching, Linux uses Interface matching
|
// Windows and Macos use UsageID matching, Linux uses Interface matching
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue