kopia lustrzana https://github.com/micropython/micropython
d11ca092f7
In the case where an OUT control transfer triggers with wLength==0 (i.e. all data sent in the SETUP phase, and no additional data phase) the callbacks were previously implemented to return b"" (i.e. an empty buffer for the data phase). However this didn't actually work as intended because b"" can't provide a RW buffer (needed for OUT transfers with a data phase to write data into), so actually the endpoint would stall. The symptom was often that the device process the request (if processing it in the SETUP phase when all information was already available), but the host sees the endpoint stall and eventually returns an error. This commit changes the behaviour so returning True from the SETUP phase of a control transfer queues a zero length status response. Signed-off-by: Angus Gratton <angus@redyak.com.au> |
||
---|---|---|
.. | ||
libc | ||
memzip | ||
netutils | ||
readline | ||
runtime | ||
timeutils | ||
tinyusb | ||
upytesthelper | ||
README.md |
README.md
This directory contains libraries, utilities and helper code developed specifically for this project. The code is intended to be portable and usable by any port.