diff options
| author | hathach <[email protected]> | 2018-08-15 17:55:16 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-08-15 17:55:16 +0700 |
| commit | cf43a6b53bd6bdeb381477b1c323abcc69158c42 (patch) | |
| tree | db8801f16f22ccc51cb921335440e77a98f123c5 /src/device | |
| parent | e07b1acbed02fff395c91b421b7fdf6c7cda61a4 (diff) | |
fix memory issue with usbd control xfer
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/usbd_pvt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/usbd_pvt.h b/src/device/usbd_pvt.h index 707e8036f..55d1867d7 100644 --- a/src/device/usbd_pvt.h +++ b/src/device/usbd_pvt.h @@ -69,7 +69,7 @@ tusb_error_t usbd_open_edpt_pair(uint8_t rhport, tusb_desc_endpoint_t const* p_d do { \ if (_len) { \ tusb_error_t err; \ - dcd_control_xfer(_rhport, _dir, _usbd_ctrl_buf, _len); \ + dcd_control_xfer(_rhport, _dir, (uint8_t*) _buffer, _len); \ osal_semaphore_wait( _usbd_ctrl_sem, OSAL_TIMEOUT_CONTROL_XFER, &err ); \ STASK_ASSERT_ERR( err ); \ } \ |
