python-hid-parser icon indicating copy to clipboard operation
python-hid-parser copied to clipboard

hid_parser: handle negative numbers in descriptors

Open tlyu opened this issue 2 years ago • 0 comments

Some Global descriptor items can have negative data values. Parse these correctly. This also causes the printed output to match the comments in the test descriptors.

Also, correctly parse report items that are signed (either Logical Minium or Logical Maximum is negative).

Adjust tests accordingly.

tlyu avatar Dec 07 '23 19:12 tlyu