mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2025-06-07 11:35:05 +02:00
Compare commits
No commits in common. "df9ecba3260b42beacb5b1600f6f984fd9bc42b0" and "696b0ca9c08f73d2ce1270b981f4a73a1ad466b8" have entirely different histories.
df9ecba326
...
696b0ca9c0
1 changed files with 1 additions and 3 deletions
|
@ -138,9 +138,8 @@ static void write_configuration_descriptor(int wLength)
|
|||
{
|
||||
usb_interface_t const * const *interfaces = usb_configure_interfaces();
|
||||
size_t total_length = sizeof(usb_dc_configuration_t);
|
||||
size_t interface_count = 0;
|
||||
|
||||
for(int i = 0; interfaces[i]; i++, interface_count++)
|
||||
for(int i = 0; interfaces[i]; i++)
|
||||
for(int k = 0; interfaces[i]->dc[k]; k++)
|
||||
{
|
||||
uint8_t const *dc = interfaces[i]->dc[k];
|
||||
|
@ -150,7 +149,6 @@ static void write_configuration_descriptor(int wLength)
|
|||
|
||||
/* Write the configuration descriptor */
|
||||
dc_configuration.wTotalLength = htole16(total_length);
|
||||
dc_configuration.bNumInterfaces = interface_count;
|
||||
dcp_write(&dc_configuration, dc_configuration.bLength);
|
||||
/* For the first call, the host usually wants only this */
|
||||
if(wLength <= dc_configuration.bLength) return;
|
||||
|
|
Loading…
Add table
Reference in a new issue