Pass wValue to control requests.

This commit is contained in:
iabdalkader 2016-04-27 08:34:20 +02:00
parent 10e6e974d3
commit 130fcbf162
2 changed files with 1 additions and 6 deletions

View File

@ -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;

View File

@ -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;