Skip to content

Improve data transfer behavior#29

Merged
smdn merged 3 commits into
mainfrom
fix-libusbdotnet-windows
May 10, 2026
Merged

Improve data transfer behavior#29
smdn merged 3 commits into
mainfrom
fix-libusbdotnet-windows

Conversation

@smdn

@smdn smdn commented May 10, 2026

Copy link
Copy Markdown
Owner

Description

This PR improves the behavior of data transfers (IUsbHidEndPoint.Read/IUsbHidEndPoint.Write) in LibUsbDotNet and LibUsbDotNetV3.

For Write, the report ID was previously always treated as 0, regardless of its actual value. The implementation has been updated so that a non‑zero report ID is included in the transmitted data, while a report ID of 0 continues to send only the payload.

For Read, the behavior has been updated to account for the difference in the 'actual read length' reported on Windows compared to other platforms. This ensures consistent behavior across implementations.

@smdn smdn merged commit d91340f into main May 10, 2026
21 checks passed
@smdn smdn deleted the fix-libusbdotnet-windows branch May 10, 2026 12:26
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