greatscottgadgets / python-usb-protocol

python library providing utilities, data structures, constants, parsers, and tools for working with USB data
BSD 3-Clause "New" or "Revised" License
55 stars 32 forks source link

Convert descriptor types to StandardDescriptorNumbers #21

Closed twam closed 8 months ago

ktemkin commented 3 years ago

This doesn't seem right, for a number of reasons:

  1. Not every type is going to be encapsulated here, so we'll want to be able to handle these as raw integers.
  2. There's almost definitely a typo in the code type(... == int).
twam commented 3 years ago

You're right about the code 🙈.

Would adding a try-except block a solution and stay with the int of no conversion is possible?

twam commented 2 years ago

Any updates? 😢

antoinevg commented 8 months ago

My apologies for the long delay.

Merged, thank you!