Open whot opened 2 years ago
I also saw a lot of warnings.
I used
with warnings.catch_warnings():
warnings.simplefilter("ignore")
rd = hid_parser.ReportDescriptor(fd.read())
to ignore them.
I agree that this is an inappropriate quantity of warnings, especially for the common use cases of validating descriptor syntax and printing the human-readable version of the parsed descriptor.
There might be a use for an additional conformance checker. I also think that report field attributes (DV, OOC, etc.) being inconsistent with the usage type (Sel) are somewhat common, and don't deserve warning about at default levels.
hid_parser is incredibly spammy for the Roccat Kone XTD
Yields a lot of warnings like this:
While I understand that this may be an issue for the parser (didn't check the actual conformity), it makes it hard to use hid_parser as library - if this was normal logging I could filter it more easily. I tried to filter the warnings with no success so far. Using warnings for this particular issue seems excessive anyway, afaict they're intended for more system-level issues. Then again, never had to deal with them before, so I'm not exactly the expert here.
Report descriptor as printed by hidtools' hid-recorder: