-
Notifications
You must be signed in to change notification settings - Fork 39
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
OutTransfer not handling >64bytes #1
Comments
I just test a simple solution, but unfortunately doesn't seem to work.
I basically moved the |
I think this commit fixes the problem. ac8c323 |
I am running some tests here with a FTDI device and I just can't send more than 64 bytes.
Checking the Ftdi.SndData, I saw it calls the OutTransfer which is suppose to deal with the maxpktsize (64 byte) limit.
I didn't test a solution yet, but looks like this is wrong:
nbytes is the number of bytes (total) to be sent, a uint32. But this implementation takes only the fist 64bytes, since buf is 64 bytes long.
This for loop, copying the data to the buffer that will be writen should be done insisde the
while (bytes_left)
loop. This while loop seems to be OK, treating the message in chunks of 64 bytes and updating bytes_left every iteration.I will test the solution tomorrow.
The text was updated successfully, but these errors were encountered: