Fix null config descriptor in SELF_POWERED mode.

This commit is contained in:
Russell
2011-12-14 11:26:14 +00:00
parent 9d1c775412
commit 9bcc2cf2b0

View File

@@ -1231,11 +1231,12 @@ unsigned char cfgDesc_Null[] =
0x01, /* 5 bConfigurationValue */
0x00, /* 6 iConfiguration */
#ifdef SELF_POWERED
192, /* 7 bmAttributes */
192, /* 7 bmAttributes */
0, /* 8 bMaxPower */
#else
128,
#endif
250, /* 8 bMaxPower */
#endif
0x09, /* 0 bLength : Size of this descriptor, in bytes. (field size 1 bytes) */
0x04, /* 1 bDescriptorType : INTERFACE descriptor. (field size 1 bytes) */