Skip to content
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

hidapi-async: update libusb/hidapi submodule of the hidapi dep #44

Merged
merged 3 commits into from
May 11, 2023

Conversation

benma
Copy link
Contributor

@benma benma commented May 9, 2023

This fixes #43 - a regression where libusb/hidapi would report the interface number of both (HWW and U2F) as 0 instead of 0 and 1 on macOS 13.3.

The fix is to pull the upstream fix:
libusb/hidapi#534.

hidapi-rs was forked to benma/hidapi-rs to pull in the latest libusb/hidapi that contains the fix.

This also led me down a rabbit-hole of updating the Docker base image and all sorts of dependencies.

@benma
Copy link
Contributor Author

benma commented May 9, 2023

Compiled for macOS for testing: bitbox-bridge.zip

@benma benma force-pushed the macos-interface-fix branch 4 times, most recently from 5c34f23 to a1f4808 Compare May 11, 2023 03:52
benma added 3 commits May 11, 2023 07:57
This fixes BitBoxSwiss#43 -
a regression where libusb/hidapi would report the interface number of
both (HWW and U2F) as 0 instead of 0 and 1 on macOS 13.3.

The fix is to pull the upstream fix:
libusb/hidapi#534.

hidapi-rs was forked to benma/hidapi-rs to pull in the latest
libusb/hidapi that contains the fix.

This also led me down a rabbit-hole of updating the Docker base image
and all sorts of dependencies.

Code changes are clippy fixes.

libusb dep was changed to libudev, as hidapi-rs switched to the hidraw
hidapi backend by default (was libusb backend before) in
ruabmbua/hidapi-rs@bbb7f3e.

Docker base image updated from 16.04 to 20.04 as as 16.04 and 18.04
reached end-of-life.
Ubuntu 18 is not supported anymore by GitHub actions.
@benma benma merged commit 54723c7 into BitBoxSwiss:master May 11, 2023
@benma benma deleted the macos-interface-fix branch May 11, 2023 06:40
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.

Cannot connect BitBox02 on M2 Mac
1 participant