Tweak USB middleware to avoid compiler warning

USG_1.0
Robert Fisk 8 years ago
parent 637f67fc14
commit 6b67970f6b

@ -107,7 +107,7 @@ USBH_StatusTypeDef USBH_GetDescriptor(USBH_HandleTypeDef *phost,
uint16_t length ); uint16_t length );
USBH_StatusTypeDef USBH_Get_DevDesc(USBH_HandleTypeDef *phost, USBH_StatusTypeDef USBH_Get_DevDesc(USBH_HandleTypeDef *phost,
uint8_t length); uint16_t length);
USBH_StatusTypeDef USBH_Get_StringDesc(USBH_HandleTypeDef *phost, USBH_StatusTypeDef USBH_Get_StringDesc(USBH_HandleTypeDef *phost,
uint8_t string_index, uint8_t string_index,

@ -112,7 +112,7 @@ static void USBH_ParseInterfaceDesc (USBH_InterfaceDescTypeDef *if_descriptor,
* @param length: Length of the descriptor * @param length: Length of the descriptor
* @retval USBH Status * @retval USBH Status
*/ */
USBH_StatusTypeDef USBH_Get_DevDesc(USBH_HandleTypeDef *phost, uint8_t length) USBH_StatusTypeDef USBH_Get_DevDesc(USBH_HandleTypeDef *phost, uint16_t length)
{ {
USBH_StatusTypeDef status; USBH_StatusTypeDef status;

Loading…
Cancel
Save