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

Enable more lenient parsing of report descriptor on Windows. #19

Conversation

Joop-Schilder
Copy link
Contributor

HidSharp has trouble parsing some report descriptors on Windows. This makes some devices unusable with HidSharp. By discarding report items which overlap or report items having undefined usage values (0) we enable more lenient parsing. This makes HidSharp usable with more devices.

This pull request fixes #18. We are still testing this.

HidSharp has trouble parsing some report descriptors on Windows. This makes some devices unusable with HidSharp. By discarding report items which overlap or report items having undefined usage values (0) we enable more lenient parsing. This makes HidSharp usable with more devices.
@benedekkupper
Copy link
Member

Please remove any unneeded whitespace changes from the commit.

@Joop-Schilder Joop-Schilder force-pushed the fix-report-descriptor-reconstruction-fails-on-windows branch from 6b83ab5 to 2079edb Compare February 2, 2023 09:13
@Joop-Schilder Joop-Schilder force-pushed the fix-report-descriptor-reconstruction-fails-on-windows branch from 2079edb to 148a3c0 Compare February 2, 2023 09:15
@Joop-Schilder
Copy link
Contributor Author

Please remove any unneeded whitespace changes from the commit.

Done! I usually leave an empty line below my if-statements for legibility. If you want to, I can remove those too. Do you happen to have a code style guide for HidSharp?

@benedekkupper
Copy link
Member

I have done some minor changes and pushed your commit to master. There is no style guide, since I'm not the author, and I have no resources to manage this library properly. I did extend the single line branches so it's easier to debug if that branch is entered, and I can recommend that practice to you as well.

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.

Report descriptor reconstruction fails on Windows
2 participants