From d03a573eee1e2d9f87990524fee3502d5e730665 Mon Sep 17 00:00:00 2001 From: Proxcloud Date: Thu, 8 Feb 2018 20:40:57 +0800 Subject: [PATCH] change product desc to 9 and add extra null byte --- common/usb_cdc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/usb_cdc.c b/common/usb_cdc.c index 51dcacdb..82522623 100644 --- a/common/usb_cdc.c +++ b/common/usb_cdc.c @@ -183,11 +183,12 @@ static const char StrDescManufacturer[] = { }; static const char StrDescProduct[] = { - 4, // Length + 9, // Length 0x03, // Type is string 'P', 0x00, 'M', 0x00, - '3', 0x00 + '3', 0x00, + 0x00 }; const char* getStringDescriptor(uint8_t idx) -- 2.39.5