summaryrefslogtreecommitdiff
path: root/tmk_core/protocol/usb_descriptor.c
diff options
context:
space:
mode:
authorFlorian Didron <fd@0x6664.com>2021-07-21 13:34:21 +0900
committerDrashna Jael're <drashna@live.com>2021-07-20 21:41:17 -0700
commitbcddde8738dbba48c548f1e3f12a10bbf60a65d8 (patch)
tree147bef552c6131528826a90caff0d48bd56f7529 /tmk_core/protocol/usb_descriptor.c
parent4d0291668b0feb3e54b03011e9a9b4349ed83d99 (diff)
fix: set usb version to 2.1.0 for webusb
Diffstat (limited to 'tmk_core/protocol/usb_descriptor.c')
-rw-r--r--tmk_core/protocol/usb_descriptor.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tmk_core/protocol/usb_descriptor.c b/tmk_core/protocol/usb_descriptor.c
index 9277554856..5c23309b1e 100644
--- a/tmk_core/protocol/usb_descriptor.c
+++ b/tmk_core/protocol/usb_descriptor.c
@@ -360,10 +360,10 @@ const USB_Descriptor_Device_t PROGMEM DeviceDescriptor = {
.Size = sizeof(USB_Descriptor_Device_t),
.Type = DTYPE_Device
},
-#if WEBUSB_ENABLE
+#if defined(WEBUSB_ENABLE) && !defined(STENO_ENABLE)
.USBSpecification = VERSION_BCD(2, 1, 0),
#else
- .USBSpecification = VERSION_BCD(1, 1, 0),
+ .USBSpecification = VERSION_BCD(2, 0, 0),
#endif
#if VIRTSER_ENABLE
@@ -1028,10 +1028,10 @@ uint16_t get_usb_descriptor(const uint16_t wValue, const uint16_t wIndex, const
break;
#ifdef WEBUSB_ENABLE
case DTYPE_BOS:
- Address = &BOSDescriptor;
- Size = pgm_read_byte(&BOSDescriptor.TotalLength);
+ Address = &BOSDescriptor;
+ Size = pgm_read_byte(&BOSDescriptor.TotalLength);
- break;
+ break;
#endif
case DTYPE_Configuration:
Address = &ConfigurationDescriptor;