increase buffer size for USB strings, check string length

This commit is contained in:
Conor Patrick
2019-03-02 19:38:03 -05:00
parent 5995f84822
commit 0232893611
3 changed files with 10 additions and 6 deletions

View File

@ -108,7 +108,7 @@ void USBD_CtlError (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req);
void USBD_ParseSetupRequest (USBD_SetupReqTypedef *req, uint8_t *pdata);
void USBD_GetString (uint8_t *desc, uint8_t *unicode, uint16_t *len);
void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t unicode_size, uint16_t *len);
/**
* @}
*/