From: iceman1001 Date: Mon, 3 Oct 2016 06:03:47 +0000 (+0200) Subject: CHG: Patch for making PM3 compatible to MCU's CDC-Host libraries Thanks to @cjbrigat... X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/44d9c722f0d3ba31d53ecb3f6af8be0e878ed769 CHG: Patch for making PM3 compatible to MCU's CDC-Host libraries Thanks to @cjbrigato to tweak the cdc imp. https://gist.github.com/cjbrigato/ef7fc18119f7c4900efbbef9bda0eb0f --- diff --git a/common/usb_cdc.c b/common/usb_cdc.c index 9a24dc13..9d621777 100644 --- a/common/usb_cdc.c +++ b/common/usb_cdc.c @@ -57,7 +57,7 @@ const char devDescriptor[] = { 0x01,0x00, // Device release number (0001) 0x01, // iManufacturer // 0x01 0x00, // iProduct - 0x00, // SerialNumber + 0xFD, // SerialNumber 0x01 // bNumConfigs }; @@ -72,7 +72,7 @@ const char cfgDescriptor[] = { 0x01, // CbConfigurationValue 0x00, // CiConfiguration 0xC0, // CbmAttributes 0xA0 - 0x00, // CMaxPower + 0xFA, // CMaxPower /* Communication Class Interface Descriptor Requirement */ 0x09, // bLength @@ -82,7 +82,7 @@ const char cfgDescriptor[] = { 0x01, // bNumEndpoints 0x02, // bInterfaceClass 0x02, // bInterfaceSubclass - 0x00, // bInterfaceProtocol + 0x01, // bInterfaceProtocol 0x00, // iInterface /* Header Functional Descriptor */ @@ -96,7 +96,7 @@ const char cfgDescriptor[] = { 0x04, // bFunctionLength 0x24, // bDescriptor Type: CS_INTERFACE 0x02, // bDescriptor Subtype: ACM Func Desc - 0x00, // bmCapabilities + 0x02, // bmCapabilities /* Union Functional Descriptor */ 0x05, // bFunctionLength