We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The asserts in the code indicate that that chunk_size must be a multiple of the usb packet size (64 bytes):
pico-extras/src/rp2_common/usb_device/usb_stream_helper.c
Line 120 in e5b9cb4
But in reality things break if the chunk_size is not also a power of 2 as the offset computation breaks down here:
Line 12 in e5b9cb4
For example, if the chunk_size is 192 bytes the offset will not be updated after the first packet is sent, and so the first packet gets sent twice.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The asserts in the code indicate that that chunk_size must be a multiple of the usb packet size (64 bytes):
pico-extras/src/rp2_common/usb_device/usb_stream_helper.c
Line 120 in e5b9cb4
But in reality things break if the chunk_size is not also a power of 2 as the offset computation breaks down here:
pico-extras/src/rp2_common/usb_device/usb_stream_helper.c
Line 12 in e5b9cb4
For example, if the chunk_size is 192 bytes the offset will not be updated after the first packet is sent, and so the first packet gets sent twice.
The text was updated successfully, but these errors were encountered: