From dbc0f8171597b9dfa9d7a3dd9006e0adaeda8c17 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Tue, 2 Apr 2019 18:11:09 +0800 Subject: [PATCH] usb: re-enable extra usb descriptors Signed-off-by: Sean Cross --- sw/src/usb-desc.c | 4 ++-- sw/src/usb-dev.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sw/src/usb-desc.c b/sw/src/usb-desc.c index e77741e..ce2afa6 100644 --- a/sw/src/usb-desc.c +++ b/sw/src/usb-desc.c @@ -223,7 +223,7 @@ const usb_descriptor_list_t usb_descriptor_list[] = { {0x0300, 0, (const uint8_t *)&string0}, {0x0301, 0, (const uint8_t *)&usb_string_manufacturer_name}, {0x0302, 0, (const uint8_t *)&usb_string_product_name}, - // {0x03EE, 0, (const uint8_t *)&usb_string_microsoft}, - // {0x0F00, sizeof(full_bos), (const uint8_t *)&full_bos}, + {0x03EE, 0, (const uint8_t *)&usb_string_microsoft}, + {0x0F00, sizeof(full_bos), (const uint8_t *)&full_bos}, {0, 0, NULL} }; diff --git a/sw/src/usb-dev.c b/sw/src/usb-dev.c index 9788fe8..649e211 100644 --- a/sw/src/usb-dev.c +++ b/sw/src/usb-dev.c @@ -112,7 +112,7 @@ void usb_setup(struct usb_device *dev, const struct usb_setup_request *setup) // printf("%s:%d couldn't find descriptor %04x (%d / %d)\n", __FILE__, __LINE__, setup->wValue, setup->wIndex, setup->wValue); usb_err(dev, 0); return; -#if 0 +#if 1 case (MSFT_VENDOR_CODE << 8) | 0xC0: // Get Microsoft descriptor case (MSFT_VENDOR_CODE << 8) | 0xC1: if (setup->wIndex == 0x0004)