Skip to content

Allow custom buffer size in read() to support reports > 64 bytes#1

Open
marcusvpiresutfpr wants to merge 2 commits into
RedfernElec:mainfrom
marcusvpiresutfpr:fix/buffer-truncation-large-reports
Open

Allow custom buffer size in read() to support reports > 64 bytes#1
marcusvpiresutfpr wants to merge 2 commits into
RedfernElec:mainfrom
marcusvpiresutfpr:fix/buffer-truncation-large-reports

Conversation

@marcusvpiresutfpr

Copy link
Copy Markdown

Added an optional size parameter to read() (defaults to 64). In desktop.rs, vec![0; 64] was replaced with vec![0; size] to allow hidapi to reassemble segmented packets.

Note on Testing: Verified and working on Desktop (Linux) with 960-byte reports. Android/iOS versions were updated for API consistency but have not been tested with large buffers yet.

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