mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Pass wValue to control requests.
This commit is contained in:
parent
10e6e974d3
commit
130fcbf162
@ -581,7 +581,7 @@ static uint8_t USBD_CDC_Setup (USBD_HandleTypeDef *pdev,
|
||||
{
|
||||
((USBD_CDC_ItfTypeDef *)pdev->pUserData)->Control(req->bRequest,
|
||||
(uint8_t*)req,
|
||||
0);
|
||||
req->wValue);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
@ -146,11 +146,6 @@ void HAL_PCD_SOFCallback(PCD_HandleTypeDef *hpcd)
|
||||
uint32_t buffptr;
|
||||
uint32_t buffsize;
|
||||
|
||||
//if (!vcp_connected) {
|
||||
// // CDC device is not connected to a host, so we are unable to send any data
|
||||
// return;
|
||||
//}
|
||||
|
||||
if(UserTxBufPtrOut != UserTxBufPtrIn) {
|
||||
if (UserTxBufPtrOut > UserTxBufPtrIn) /* Rollback */ {
|
||||
buffsize = APP_RX_DATA_SIZE - UserTxBufPtrOut;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user