-
Notifications
You must be signed in to change notification settings - Fork 77
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
usb_send does not take into account usb_endpoints[ep_num].tx_size #52
Labels
bug
Something isn't working
Comments
r2axz
added a commit
that referenced
this issue
Feb 11, 2022
r2axz
added a commit
that referenced
this issue
Feb 11, 2022
FIX: usb_send tx_space_available check, closes #52
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
words_left
is initialized beforecount > tx_space_available
check, which leads to writing past the ep tx buffer. Surprisingly, this does not cause any major problems because usb_send is mostly used during the device USB enumeration phase and its circular buffer sibling (usb_circ_buf_send
) does not have this issue.The text was updated successfully, but these errors were encountered: