diff options
| author | Jeremiah McCarthy <[email protected]> | 2021-03-26 15:30:43 -0400 |
|---|---|---|
| committer | Jeremiah McCarthy <[email protected]> | 2021-03-26 15:30:43 -0400 |
| commit | 1138f8cc704e09af3335e253e5f244fde90d982f (patch) | |
| tree | 568e5878d290888678f9f0d281752547970d2170 /src/device/usbd_control.c | |
| parent | 161b8587bd435ae2dc6f0aafac41019a09580b80 (diff) | |
Add DFU Class per Version 1.1 Spec
Diffstat (limited to 'src/device/usbd_control.c')
| -rw-r--r-- | src/device/usbd_control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/usbd_control.c b/src/device/usbd_control.c index d15380199..724c652e6 100644 --- a/src/device/usbd_control.c +++ b/src/device/usbd_control.c @@ -107,7 +107,7 @@ bool tud_control_xfer(uint8_t rhport, tusb_control_request_t const * request, vo _ctrl_xfer.buffer = (uint8_t*) buffer; _ctrl_xfer.total_xferred = 0U; _ctrl_xfer.data_len = tu_min16(len, request->wLength); - + if (request->wLength > 0U) { if(_ctrl_xfer.data_len > 0U) |
