]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - common/usb_cdc.c
change product desc to 9 and add extra null byte
[proxmark3-svn] / common / usb_cdc.c
index 91a63cf3c8cfd8984d8f055411273bf085d85b70..82522623eda08306df5ea1be5ff93a94dce03c58 100644 (file)
@@ -77,8 +77,8 @@ static const char cfgDescriptor[] = {
        0x02,   // CbNumInterfaces\r
        0x01,   // CbConfigurationValue\r
        0x00,   // CiConfiguration\r
-       0xC0,   // CbmAttributes 0xA0\r
-       0xFA,   // CMaxPower\r
+       0x80,   // CbmAttributes (Bus Powered)\r
+       0x4B,   // CMaxPower (150mA max current drawn from bus)\r
 \r
        /* Interface 0 Descriptor: Communication Class Interface */\r
        0x09, // bLength\r
@@ -183,11 +183,12 @@ static const char StrDescManufacturer[] = {
 };\r
 \r
 static const char StrDescProduct[] = {\r
-  8,                   // Length\r
+  9,                   // Length\r
   0x03,                        // Type is string\r
   'P', 0x00,\r
   'M', 0x00,\r
-  '3', 0x00\r
+  '3', 0x00,\r
+   0x00\r
 };\r
 \r
 const char* getStringDescriptor(uint8_t idx)\r
Impressum, Datenschutz