Skip to content

Conversation

@relic-se
Copy link
Owner

I've discovered that some odd devices may report endpoint descriptors with longer lengths. I'm not sure what the extra data is used for, but it was causing ValueError exceptions because it did not match the standard sizing. I've instead made the standard descriptor length a minimum to allow for this.

The tested device was a wired PlayStation DUALSHOCK 4 controller which was reporting endpoint descriptors with a length of 9 bytes.

@relic-se relic-se merged commit 105f442 into main Sep 18, 2025
2 checks passed
adafruit-adabot pushed a commit to adafruit/CircuitPython_Community_Bundle that referenced this pull request Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants