Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the USB speed fails to update ep0 max packet size #40

Open
florg-32 opened this issue Jan 12, 2024 · 0 comments
Open

Changing the USB speed fails to update ep0 max packet size #40

florg-32 opened this issue Jan 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@florg-32
Copy link

florg-32 commented Jan 12, 2024

When changing the public UsbDevice::speed, the max packet size of ep0_in/out are not updated, which then leads to the device failing to enumerate. (Invalid ep0 maxpacket: 64)

The correct value for USB 3.0+ is 9, where the actual max packet size is 2^bMaxPacketSize0

I hope its okay to just open issues for now, will also open an MR once I find time :)

@h7x4 h7x4 added the bug Something isn't working label Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants