Skip to content

Reconstruction logic for padding bytes at the end of Reports (only possible for devices without ReportID)#707

Merged
Youw merged 2 commits intolibusb:masterfrom
JoergAtGithub:pading_bytes_for_reports_without_id
Oct 30, 2024
Merged

Reconstruction logic for padding bytes at the end of Reports (only possible for devices without ReportID)#707
Youw merged 2 commits intolibusb:masterfrom
JoergAtGithub:pading_bytes_for_reports_without_id

Conversation

@JoergAtGithub
Copy link
Contributor

  • Added reconstruction logic of const padding bytes at the end of a report for devices which don't use ReportIDs
  • Enhanced padding logic to distinguish between byte and bit padding.
  • Added a new test case for Razer Cobra mouse 1532_00A3_0002_0001 which has a completly con feature report of 90 bytes.
  • Modified expected report descriptor reference file 045E_02FF_0005_0001_expected.rpt_desc to include additional padding bytes.

Closes: #703

…rt for devices which don't use ReportIDs

-Enhanced padding logic to distinguish between byte and bit padding.
-Add a new test case for Razer Cobra mouse `1532_00A3_0002_0001` which has a completly con feature report of 90 bytes.
-Modified expected report descriptor reference file `045E_02FF_0005_0001_expected.rpt_desc` to include additional padding bytes.
@mcuee mcuee added the Windows Related to Windows backend label Oct 28, 2024
Co-authored-by: Ihor Dutchak <ihor.youw@gmail.com>
@Youw
Copy link
Member

Youw commented Oct 29, 2024

If someone could test/verify this - I'll approve/merge.

@mcuee
Copy link
Member

mcuee commented Oct 29, 2024

Not sure if I have test devices which can test the improvement in this PR. Still I will check with my existing devices to see if there are any differences.

Copy link

@SuibianP SuibianP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with 1532:00A3. hid_report_reconstructor_test adds the last const report correctly.

@Youw Youw merged commit ff67c77 into libusb:master Oct 30, 2024
@JoergAtGithub JoergAtGithub deleted the pading_bytes_for_reports_without_id branch October 30, 2024 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Windows Related to Windows backend

4 participants