Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@troian
Copy link
Contributor

@troian troian commented Apr 5, 2021

fixes issue on certain linux hosts when strings are not
decoded properly. though strings issue must be fixed,
it is still remains convenient to ProductID as source
of detection Ledger type

Signed-off-by: Artur Troian [email protected]

fixes issue on certain linux hosts when strings are not
decoded properly. though strings issue must be fixed,
it is still remains convenient to ProductID as source
of detection Ledger type

Signed-off-by: Artur Troian <[email protected]>
@troian
Copy link
Contributor Author

troian commented Apr 5, 2021

/cc @jleni
we experience this issue quite often in akash so would be good to get it resolved.


// list of supported product ids as well as their corresponding interfaces
var supportedLedgerProductID = map[uint16]int{
0x4011: 0, // Ledger Nano X
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem with this is that in the past, these values have changed according to the firmware version.
While they are supposed to be stable in the future, we should keep an eye on them in case there are any breaking changes.

Copy link
Contributor Author

@troian troian Apr 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be pretty easy to add new/updated values. String neither remain stable within product. Pid change is rather exceptional case imo.

@jleni jleni merged commit 704180b into Zondax:master Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants