[ion/usb] Fix USB descriptor

This commit is contained in:
Yaya-Cout
2025-10-12 10:58:59 +02:00
parent 13902cae72
commit 3566d44df2

View File

@@ -71,7 +71,7 @@ public:
1, // bInterfaceSubClass: DFU 1, // bInterfaceSubClass: DFU
2, // bInterfaceProtocol: DFU Mode (not DFU Runtime, which would be 1) 2, // bInterfaceProtocol: DFU Mode (not DFU Runtime, which would be 1)
4, // iInterface: Index of the Interface string, see m_descriptor 4, // iInterface: Index of the Interface string, see m_descriptor
&m_dfuFunctionalDescriptor), &m_interfaceDescriptor2),
m_interfaceDescriptor2( m_interfaceDescriptor2(
0, // bInterfaceNumber 0, // bInterfaceNumber
k_dfuInterfaceAlternateSetting + 1, // bAlternateSetting k_dfuInterfaceAlternateSetting + 1, // bAlternateSetting
@@ -84,8 +84,8 @@ public:
4, // iInterface: Index of the Interface string, see m_descriptor 4, // iInterface: Index of the Interface string, see m_descriptor
&m_dfuFunctionalDescriptor), &m_dfuFunctionalDescriptor),
m_configurationDescriptor( m_configurationDescriptor(
9 + 18 + 18, // wTotalLength: configuration descriptor + interface descriptor + dfu functional descriptor lengths 9 + 9 + 9 + 9, // wTotalLength: configuration descriptor + interface descriptor 1 + interface descriptor 2 + dfu functional descriptor lengths2
2, // bNumInterfaces 1, // bNumInterfaces
k_bConfigurationValue, // bConfigurationValue k_bConfigurationValue, // bConfigurationValue
0, // iConfiguration: No string descriptor for the configuration 0, // iConfiguration: No string descriptor for the configuration
0x80, /* bmAttributes: 0x80, /* bmAttributes: