Skip to content

Update LibUsbDotNet to latest version#39

Open
MicBoucinha wants to merge 3 commits intoharp-tech:mainfrom
fchampalimaud:feature/update-libusbdotnet
Open

Update LibUsbDotNet to latest version#39
MicBoucinha wants to merge 3 commits intoharp-tech:mainfrom
fchampalimaud:feature/update-libusbdotnet

Conversation

@MicBoucinha
Copy link
Copy Markdown

Hi, this PR updates LibUsbDotNet to the latest available version (3.0.167-alpha).

Although this is an alpha version, there seems to be a consensus that it is in a state that will be released a final version soon (please see LibUsbDotNet/LibUsbDotNet#266).

The main advantage of this PR is that this version bundles the native libusb DLLs for the different platforms and architectures. This is important for bundled .app macOS applications that use libusb, since they aren't able to find correctly the native DLL due to restrictions with SIP.

Some necessary changes were needed to the project, mainly the addition of net8.0 as a TargetFramework and some API changes on how to handle the connection.

This PR also fixes an issue on Linux, where this was setting the Configuration for the device, even if that Configuration was already set. According to libusb's documentation (here: https://libusb.sourceforge.io/api-1.0/group__libusb__dev.html#ga785ddea63a2b9bcb879a614ca4867bed), on this occasion, the call to the method acts as a reset, which was preventing subsequent usage of UpdateWaveform.

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.

1 participant