Skip to content

Commit

Permalink
Increase HID descriptor report size variable type
Browse files Browse the repository at this point in the history
In the process of implementing a USB host application to work with a UPS, I found the report descriptor to be well in excess of the 255 bytes allowed by the uint8 used for bytesTransferred at line 133.
  • Loading branch information
nickboers authored Oct 7, 2018
1 parent 523fbeb commit 29a3c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usb_host_hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ typedef struct _USB_HID_TRANSFER_INFO
uint8_t state; // State of the endpoint.
uint16_t reportId; // Report ID of the current transfer.
uint8_t *userData; // Data pointer to application buffer.
uint8_t bytesTransferred; // Number of bytes transferred to/from the user's data buffer.
uint16_t bytesTransferred; // Number of bytes transferred to/from the user's data buffer.
uint8_t endpoint; // Endpoint to use for the transfer.
uint8_t reportSize; // Size of report currently requested for transfer.
uint8_t interface; // Interface number of current transfer.
Expand Down

0 comments on commit 29a3c85

Please sign in to comment.