python-hid-parser
python-hid-parser copied to clipboard
hid_parser: handle negative numbers in descriptors
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.