summaryrefslogtreecommitdiff
path: root/docs/esp32
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2024-04-05 14:46:45 +1100
committerDamien George <damien@micropython.org>2024-04-17 12:39:47 +1000
commitd11ca092f75d2652df403dda7448fe1bc8f98cf7 (patch)
treef9271a3e0442a67efc1d8052b7037149d3e23708 /docs/esp32
parent53d0050255ef92df5adc9255380f170eb33bd2c9 (diff)
shared/tinyusb: Fix dynamic USB control callbacks for wLength==0.
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>
Diffstat (limited to 'docs/esp32')
0 files changed, 0 insertions, 0 deletions