fix usb descriptor mistakes (#2340)

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
This commit is contained in:
Matthew Kennedy 2021-02-12 22:06:55 -08:00 committed by GitHub
parent 67751dbd51
commit d8032fbd8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ static const uint8_t vcom_string0[] = {
* Vendor string.
*/
static const uint8_t vcom_string1[] = {
USB_DESC_BYTE(24), /* bLength. */
USB_DESC_BYTE(22), /* bLength. */
USB_DESC_BYTE(USB_DESCRIPTOR_STRING), /* bDescriptorType. */
'r', 0, 'u', 0, 's', 0, 'E', 0, 'F', 0, 'I', 0, ' ', 0, 'L', 0,
'L', 0, 'C', 0
@ -183,7 +183,7 @@ static const uint8_t vcom_string2[] = {
* Serial Number string.
*/
static uint8_t vcom_string3[] = {
USB_DESC_BYTE(52), /* bLength. */
USB_DESC_BYTE(50), /* bLength. */
USB_DESC_BYTE(USB_DESCRIPTOR_STRING), /* bDescriptorType. */
'0', 0, '1', 0, '2', 0, '3', 0, '4', 0, '5', 0, '6', 0, '7', 0,
'8', 0, '9', 0, 'A', 0, 'B', 0, 'C', 0, 'D', 0, 'E', 0, 'F', 0,