summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Didron <fd@librem.one>2019-12-04 17:01:07 +0900
committerDrashna Jael're <drashna@live.com>2019-12-05 16:03:55 -0800
commit9620bdbf007dd1a056f464d8825539a7d556a618 (patch)
treee26784aba891e5ca6c21b5ccd52dc73eb218f67f
parent52e4c04afd46ac6352673b87196e52ab463b7be9 (diff)
fix: only change usb vesion spec if webusb is enabled
-rw-r--r--tmk_core/protocol/usb_descriptor.c4
1 files changed, 4 insertions, 0 deletions
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,