diff options
author | Florian Didron <fd@librem.one> | 2019-12-04 17:01:07 +0900 |
---|---|---|
committer | Florian Didron <fdidron@users.noreply.github.com> | 2019-12-06 08:20:51 +0900 |
commit | 15d3efd5d1b11030cc454d7adf3c7e35c8fa8c42 (patch) | |
tree | e26784aba891e5ca6c21b5ccd52dc73eb218f67f /tmk_core/protocol | |
parent | 0bd727cb19a13fbb7c871c8eb8cf6145d198587d (diff) |
fix: only change usb vesion spec if webusb is enabled
Diffstat (limited to 'tmk_core/protocol')
-rw-r--r-- | tmk_core/protocol/usb_descriptor.c | 4 |
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, |