fix: only change usb vesion spec if webusb is enabled
This commit is contained in:
committed by
Florian Didron
parent
0bd727cb19
commit
15d3efd5d1
@@ -287,7 +287,11 @@ const USB_Descriptor_BOS_t PROGMEM BOSDescriptor = BOS_DESCRIPTOR(
|
|||||||
* Device descriptor
|
* Device descriptor
|
||||||
*/
|
*/
|
||||||
const USB_Descriptor_Device_t PROGMEM DeviceDescriptor = {.Header = {.Size = sizeof(USB_Descriptor_Device_t), .Type = DTYPE_Device},
|
const USB_Descriptor_Device_t PROGMEM DeviceDescriptor = {.Header = {.Size = sizeof(USB_Descriptor_Device_t), .Type = DTYPE_Device},
|
||||||
|
#if WEBUSB_ENABLE
|
||||||
.USBSpecification = VERSION_BCD(2, 1, 0),
|
.USBSpecification = VERSION_BCD(2, 1, 0),
|
||||||
|
#else
|
||||||
|
.USBSpecification = VERSION_BCD(1, 1, 0),
|
||||||
|
#endif
|
||||||
#if VIRTSER_ENABLE
|
#if VIRTSER_ENABLE
|
||||||
.Class = USB_CSCP_IADDeviceClass,
|
.Class = USB_CSCP_IADDeviceClass,
|
||||||
.SubClass = USB_CSCP_IADDeviceSubclass,
|
.SubClass = USB_CSCP_IADDeviceSubclass,
|
||||||
|
|||||||
Reference in New Issue
Block a user