fix: set usb version to 2.1.0 for webusb
This commit is contained in:
committed by
Drashna Jael're
parent
4d0291668b
commit
bcddde8738
@@ -360,10 +360,10 @@ const USB_Descriptor_Device_t PROGMEM DeviceDescriptor = {
|
|||||||
.Size = sizeof(USB_Descriptor_Device_t),
|
.Size = sizeof(USB_Descriptor_Device_t),
|
||||||
.Type = DTYPE_Device
|
.Type = DTYPE_Device
|
||||||
},
|
},
|
||||||
#if WEBUSB_ENABLE
|
#if defined(WEBUSB_ENABLE) && !defined(STENO_ENABLE)
|
||||||
.USBSpecification = VERSION_BCD(2, 1, 0),
|
.USBSpecification = VERSION_BCD(2, 1, 0),
|
||||||
#else
|
#else
|
||||||
.USBSpecification = VERSION_BCD(1, 1, 0),
|
.USBSpecification = VERSION_BCD(2, 0, 0),
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if VIRTSER_ENABLE
|
#if VIRTSER_ENABLE
|
||||||
@@ -1028,10 +1028,10 @@ uint16_t get_usb_descriptor(const uint16_t wValue, const uint16_t wIndex, const
|
|||||||
break;
|
break;
|
||||||
#ifdef WEBUSB_ENABLE
|
#ifdef WEBUSB_ENABLE
|
||||||
case DTYPE_BOS:
|
case DTYPE_BOS:
|
||||||
Address = &BOSDescriptor;
|
Address = &BOSDescriptor;
|
||||||
Size = pgm_read_byte(&BOSDescriptor.TotalLength);
|
Size = pgm_read_byte(&BOSDescriptor.TotalLength);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case DTYPE_Configuration:
|
case DTYPE_Configuration:
|
||||||
Address = &ConfigurationDescriptor;
|
Address = &ConfigurationDescriptor;
|
||||||
|
|||||||
Reference in New Issue
Block a user