mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 17:38:39 +00:00
winusb: fix WINUSB_EXTRA_STRING
This commit is contained in:
parent
56c5a46095
commit
966d8cb4ce
2
winusb.c
2
winusb.c
@ -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
|
||||
};
|
||||
|
2
winusb.h
2
winusb.h
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user