1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

winusb: fix WINUSB_EXTRA_STRING

This commit is contained in:
Pavol Rusnak 2018-01-23 22:54:49 +01:00
parent 56c5a46095
commit 966d8cb4ce
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ static struct winusb_compatible_id_descriptor winusb_wcid = {
};
static const struct usb_string_descriptor winusb_string_descriptor = {
.bLength = sizeof(struct usb_string_descriptor) + sizeof(WINUSB_EXTRA_STRING),
.bLength = 0x12,
.bDescriptorType = USB_DT_STRING,
.wData = WINUSB_EXTRA_STRING
};

View File

@ -23,7 +23,7 @@
// Arbitrary, but must be equivalent to the last character in extra string
#define WINUSB_MS_VENDOR_CODE '!'
#define WINUSB_EXTRA_STRING u"MSFT100!"
#define WINUSB_EXTRA_STRING {'M', 'S', 'F', 'T', '1', '0', '0', WINUSB_MS_VENDOR_CODE}
extern void winusb_setup(usbd_device* usbd_dev, uint8_t interface);