Revert "Target only USB ledger with interface number 0"
This reverts commit 02bc43b094
and
should restore compatibility with Ledgers on MacOS.
This commit is contained in:
parent
6895d7a87b
commit
cb038afa42
@ -315,12 +315,6 @@ let find_ledgers ?id () =
|
|||||||
log_info "Found %d Ledger(s)" (List.length ledgers) ;
|
log_info "Found %d Ledger(s)" (List.length ledgers) ;
|
||||||
filter_map_s begin fun device_info ->
|
filter_map_s begin fun device_info ->
|
||||||
log_info "Processing Ledger at path [%s]" device_info.Hidapi.path ;
|
log_info "Processing Ledger at path [%s]" device_info.Hidapi.path ;
|
||||||
if device_info.Hidapi.interface_number <> 0
|
|
||||||
then
|
|
||||||
(* HID interfaces get number 0:
|
|
||||||
https://github.com/LedgerHQ/ledger-nano-s/issues/48 *)
|
|
||||||
return_none
|
|
||||||
else
|
|
||||||
match Hidapi.(open_path device_info.path) with
|
match Hidapi.(open_path device_info.path) with
|
||||||
| None -> return_none
|
| None -> return_none
|
||||||
| Some h ->
|
| Some h ->
|
||||||
|
Loading…
Reference in New Issue
Block a user