summaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authorFlorian Didron <fd@0x6664.com>2021-07-21 13:34:21 +0900
committerFlorian Didron <fd@0x6664.com>2021-07-21 13:34:21 +0900
commit2c7be9e1d74bb42fd93022e2f748a4ba65d90e45 (patch)
tree99d8a139cd58b1374b627c09d9a4cd309477f1d4 /tmk_core
parentbd00ce2d6a0d0b6b7a9a9f961bf4627f71750ea7 (diff)
fix: set usb version to 2.1.0 for webusb
Diffstat (limited to 'tmk_core')
-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 71d45e5bfe..bfc67cd37a 100644
--- a/tmk_core/protocol/usb_descriptor.c
+++ b/tmk_core/protocol/usb_descriptor.c
@@ -364,7 +364,11 @@ const USB_Descriptor_Device_t PROGMEM DeviceDescriptor = {
.Size = sizeof(USB_Descriptor_Device_t),
.Type = DTYPE_Device
},
+#if defined(WEBUSB_ENABLE) && !defined(STENO_ENABLE)
+ .USBSpecification = VERSION_BCD(2, 1, 0),
+#else
.USBSpecification = VERSION_BCD(2, 0, 0),
+#endif
#if VIRTSER_ENABLE
.Class = USB_CSCP_IADDeviceClass,