summaryrefslogtreecommitdiff
path: root/src/device/usbd_control.c
diff options
context:
space:
mode:
authorJeremiah McCarthy <[email protected]>2021-03-26 15:30:43 -0400
committerJeremiah McCarthy <[email protected]>2021-03-26 15:30:43 -0400
commit1138f8cc704e09af3335e253e5f244fde90d982f (patch)
tree568e5878d290888678f9f0d281752547970d2170 /src/device/usbd_control.c
parent161b8587bd435ae2dc6f0aafac41019a09580b80 (diff)
Add DFU Class per Version 1.1 Spec
Diffstat (limited to 'src/device/usbd_control.c')
-rw-r--r--src/device/usbd_control.c2
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)