From 15d3efd5d1b11030cc454d7adf3c7e35c8fa8c42 Mon Sep 17 00:00:00 2001 From: Florian Didron Date: Wed, 4 Dec 2019 17:01:07 +0900 Subject: fix: only change usb vesion spec if webusb is enabled --- tmk_core/protocol/usb_descriptor.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tmk_core/protocol') diff --git a/tmk_core/protocol/usb_descriptor.c b/tmk_core/protocol/usb_descriptor.c index ac35a28772..4dd2dfdc9e 100644 --- a/tmk_core/protocol/usb_descriptor.c +++ b/tmk_core/protocol/usb_descriptor.c @@ -287,7 +287,11 @@ const USB_Descriptor_BOS_t PROGMEM BOSDescriptor = BOS_DESCRIPTOR( * Device descriptor */ 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), +#else + .USBSpecification = VERSION_BCD(1, 1, 0), +#endif #if VIRTSER_ENABLE .Class = USB_CSCP_IADDeviceClass, .SubClass = USB_CSCP_IADDeviceSubclass, -- cgit v1.2.3