Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using WINUSB_MS_VENDOR_CODE in extra string #7

Merged
merged 1 commit into from
Aug 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/winusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ static void winusb_set_config(usbd_device* usbd_dev, uint16_t wValue) {
}

void winusb_setup(usbd_device* usbd_dev) {
usbd_register_extra_string(usbd_dev, 0xEE, "MSFT100!");
static const char msft_extra_string[] = {'M', 'S', 'F', 'T', '1', '0', '0', WINUSB_MS_VENDOR_CODE, '\0'};
usbd_register_extra_string(usbd_dev, 0xEE, msft_extra_string);
usbd_register_set_config_callback(usbd_dev, winusb_set_config);

/* Windows probes the compatible ID before setting the configuration,
Expand Down