summaryrefslogtreecommitdiff
path: root/src/device/usbd_control.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-05-12 14:09:35 +0700
committerhathach <[email protected]>2019-05-12 14:09:35 +0700
commitba2136486c153edd372eadaa325dab27fe1297b2 (patch)
treed30de0dbfb87172da850733d88cf08ec9751e69e /src/device/usbd_control.c
parentde56a0ca8987c15c06112ece2589dab18f1d6666 (diff)
add tud_hid_descriptor_report_cb()
- remove tud_desc_set.hid_report - remove tud_desc_set_t
Diffstat (limited to 'src/device/usbd_control.c')
-rw-r--r--src/device/usbd_control.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/device/usbd_control.c b/src/device/usbd_control.c
index 31f447c03..0b878fbcb 100644
--- a/src/device/usbd_control.c
+++ b/src/device/usbd_control.c
@@ -93,8 +93,10 @@ bool usbd_control_xfer(uint8_t rhport, tusb_control_request_t const * request, v
_control_state.total_len = tu_min16(len, request->wLength);
_control_state.total_transferred = 0;
- if ( (buffer != NULL) && len )
+ if ( len )
{
+ TU_ASSERT(buffer);
+
// Data stage
TU_ASSERT( start_control_data_xact(rhport) );
}else