ControlIn USB commands must return the number of bytes that were actually
received.
In typical USB applications its common to have bulk transfers where you don't
know the length of the data that you're going to receive - so you set up a
buffer with the maximum possible bytes and execute a ControlIn(..., buffer)
command. After the command you check to see how many bytes were actually
received.
Original issue reported on code.google.com by navneet....@gmail.com on 24 Feb 2015 at 12:19
Original issue reported on code.google.com by
navneet....@gmail.com
on 24 Feb 2015 at 12:19