forked from PAWPAW-Mirror/lib_xua
Fix null config descriptor in SELF_POWERED mode.
This commit is contained in:
@@ -1232,10 +1232,11 @@ unsigned char cfgDesc_Null[] =
|
|||||||
0x00, /* 6 iConfiguration */
|
0x00, /* 6 iConfiguration */
|
||||||
#ifdef SELF_POWERED
|
#ifdef SELF_POWERED
|
||||||
192, /* 7 bmAttributes */
|
192, /* 7 bmAttributes */
|
||||||
|
0, /* 8 bMaxPower */
|
||||||
#else
|
#else
|
||||||
128,
|
128,
|
||||||
#endif
|
|
||||||
250, /* 8 bMaxPower */
|
250, /* 8 bMaxPower */
|
||||||
|
#endif
|
||||||
|
|
||||||
0x09, /* 0 bLength : Size of this descriptor, in bytes. (field size 1 bytes) */
|
0x09, /* 0 bLength : Size of this descriptor, in bytes. (field size 1 bytes) */
|
||||||
0x04, /* 1 bDescriptorType : INTERFACE descriptor. (field size 1 bytes) */
|
0x04, /* 1 bDescriptorType : INTERFACE descriptor. (field size 1 bytes) */
|
||||||
|
|||||||
Reference in New Issue
Block a user