Created
October 3, 2016 01:13
-
-
Save cjbrigato/ef7fc18119f7c4900efbbef9bda0eb0f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/common/usb_cdc.c b/common/usb_cdc.c | |
index 7fd2933..ffee677 100644 | |
--- a/common/usb_cdc.c | |
+++ b/common/usb_cdc.c | |
@@ -56,7 +56,7 @@ const char devDescriptor[] = { | |
0x01,0x00, // Device release number (0001) | |
0x01, // iManufacturer // 0x01 | |
0x00, // iProduct | |
- 0x00, // SerialNumber | |
+ 0xFD, // SerialNumber^M | |
0x01 // bNumConfigs | |
}; | |
@@ -71,7 +71,7 @@ const char cfgDescriptor[] = { | |
0x01, // CbConfigurationValue | |
0x00, // CiConfiguration | |
0xC0, // CbmAttributes 0xA0 | |
- 0x00, // CMaxPower | |
+ 0xFA, // CMaxPower^M | |
/* Communication Class Interface Descriptor Requirement */ | |
0x09, // bLength | |
@@ -81,7 +81,7 @@ const char cfgDescriptor[] = { | |
0x01, // bNumEndpoints | |
0x02, // bInterfaceClass | |
0x02, // bInterfaceSubclass | |
- 0x00, // bInterfaceProtocol | |
+ 0x01, // bInterfaceProtocol^M | |
0x00, // iInterface | |
/* Header Functional Descriptor */ | |
@@ -95,7 +95,7 @@ const char cfgDescriptor[] = { | |
0x04, // bFunctionLength | |
0x24, // bDescriptor Type: CS_INTERFACE | |
0x02, // bDescriptor Subtype: ACM Func Desc | |
- 0x00, // bmCapabilities | |
+ 0x02, // bmCapabilities^M |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment