mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-21 03:40:52 +00:00
usbd_control.c: Decide whether a control transfer has a data stage
based on setup packet wLength.
This commit is contained in:
parent
05914de109
commit
b0b737b42a
@ -94,7 +94,7 @@ bool tud_control_xfer(uint8_t rhport, tusb_control_request_t const * request, vo
|
||||
_control_state.total_len = tu_min16(len, request->wLength);
|
||||
_control_state.total_transferred = 0;
|
||||
|
||||
if ( len )
|
||||
if ( _control_state.total_len )
|
||||
{
|
||||
TU_ASSERT(buffer);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user