diff options
| author | hathach <[email protected]> | 2019-04-02 01:30:01 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-04-02 01:30:01 +0700 |
| commit | 491b5936d5abba5030cceea35a4aa31c470e5782 (patch) | |
| tree | 2f7c050cd66a0a4c086c980cb08b2a486e602b5e /src/device/usbd_control.c | |
| parent | e9851f50420ae500476faa54e8fa9eb0a2b8b4b0 (diff) | |
usbd better support suspend/resume
Diffstat (limited to 'src/device/usbd_control.c')
| -rw-r--r-- | src/device/usbd_control.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/device/usbd_control.c b/src/device/usbd_control.c index 24234f4d2..8460a11b0 100644 --- a/src/device/usbd_control.c +++ b/src/device/usbd_control.c @@ -114,6 +114,7 @@ bool usbd_control_xfer_cb (uint8_t rhport, uint8_t ep_addr, xfer_result_t result if ( _control_state.request.bmRequestType_bit.direction == TUSB_DIR_OUT )
{
+ TU_VERIFY(_control_state.buffer);
memcpy(_control_state.buffer, _usbd_ctrl_buf, xferred_bytes);
}
|
