Skip to content

Commit

Permalink
Merge pull request #7 from karel-3d/patch-1
Browse files Browse the repository at this point in the history
Using WINUSB_MS_VENDOR_CODE in extra string
  • Loading branch information
devanlai authored Aug 19, 2019
2 parents ff22575 + e6147fa commit 9bb26fa
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 9bb26fa

Please # to comment.