-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix/fix nano s enumeration bug #2822
Bugfix/fix nano s enumeration bug #2822
Conversation
I just built and tested this and wanted to confirm it resolves the issues I was having here #2665 Thank you @algoidan 👍 |
Codecov Report
@@ Coverage Diff @@
## master #2822 +/- ##
=======================================
Coverage 47.12% 47.12%
=======================================
Files 349 349
Lines 56430 56430
=======================================
+ Hits 26590 26591 +1
+ Misses 26860 26857 -3
- Partials 2980 2982 +2
Continue to review full report at Codecov.
|
// The usb library adds one extra byte to the input passed to the USB device | ||
// so the written bytes are larger than what we've send | ||
// https://github.com/karalabe/hid/blob/9c14560f9ee858c43f40b5cd01392b167aacf4e8/hid_enabled.go#L167 | ||
if runtime.GOOS == "windows" && cc > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider refactoring so you would use ledger_windows.go for windows-specific logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good !
Goal was not able to communicate with the Ledger Nano S device.
The device has two HID occurrences on the OS and after the firmware upgrade, one of them became not responsive. That made goal to the hang.