diff options
| author | hathach <[email protected]> | 2019-05-11 16:31:08 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-05-11 16:31:52 +0700 |
| commit | de56a0ca8987c15c06112ece2589dab18f1d6666 (patch) | |
| tree | 101bd3bf6cb994043e3347e2e473f252996fd215 /src/device/usbd_control.c | |
| parent | bfa073818c83266c2353ccf4fce580eef62e4a0c (diff) | |
add tud_descriptor_string_cb() for getting string descriptor from application
- remove tud_desc_set.string_arr/string_count
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 8460a11b0..31f447c03 100644 --- a/src/device/usbd_control.c +++ b/src/device/usbd_control.c @@ -93,7 +93,7 @@ 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 ( (buffer != NULL) && len )
{
// Data stage
TU_ASSERT( start_control_data_xact(rhport) );
|
