Skip to content

Increase size of desc_str for USBD_Device - #584

Open
FromDarkHell wants to merge 2 commits into
adafruit:masterfrom
FromDarkHell:string-descriptor-fix
Open

Increase size of desc_str for USBD_Device#584
FromDarkHell wants to merge 2 commits into
adafruit:masterfrom
FromDarkHell:string-descriptor-fix

Conversation

@FromDarkHell

Copy link
Copy Markdown

The default size for desc_str was limited to 32 unicode characters which means longer string descriptors weren't possible. The max size for a descriptor in bytes is 255 bytes long since bLength is 1 byte long. So then subtract 2 from the size of desc_str to account for the header bytes.

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