mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 09:39:10 -04:00
Merge branch 'bugfix/config_desc_total_length' into 'master'
Bugfix: make wTotalLength uint16_t to avoid truncation See merge request espressif/esp-idf!16833
This commit is contained in:
commit
187e6ff66f
@ -155,7 +155,7 @@ typedef struct {
|
||||
enum_stage_t stage; /**< Current enumeration stage */
|
||||
int expect_num_bytes; /**< Expected number of bytes for IN transfers stages. Set to 0 for OUT transfer */
|
||||
uint8_t bMaxPacketSize0; /**< Max packet size of the device's EP0. Read from bMaxPacketSize0 field of device descriptor */
|
||||
uint8_t wTotalLength; /**< Total length of device's configuration descriptor. Read from wTotalLength field of config descriptor */
|
||||
uint16_t wTotalLength; /**< Total length of device's configuration descriptor. Read from wTotalLength field of config descriptor */
|
||||
uint8_t iManufacturer; /**< Index of the Manufacturer string descriptor */
|
||||
uint8_t iProduct; /**< Index of the Product string descriptor */
|
||||
uint8_t iSerialNumber; /**< Index of the Serial Number string descriptor */
|
||||
|
Loading…
x
Reference in New Issue
Block a user