Skip to content

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

Merged
benma merged 3 commits into
BitBoxSwiss:masterfrom
benma:macos-interface-fix
May 11, 2023
Merged

benma merged 3 commits into
BitBoxSwiss:masterfrom
benma:macos-interface-fix

Conversation

@benma

@benma benma commented May 9, 2023

Copy link
Copy Markdown
Contributor

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

benma commented May 9, 2023

Copy link
Copy Markdown
Contributor Author

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 force-pushed the macos-interface-fix branch from a1f4808 to 06ef354 Compare May 11, 2023 06:29
@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