We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8147551 commit 87bbaaaCopy full SHA for 87bbaaa
cores/arduino/USB/PluggableUSB.cpp
@@ -40,7 +40,7 @@ int PUSB_GetInterface(uint8_t* interfaceNum)
40
int ret = 0;
41
PUSBListNode* node = rootNode;
42
for (uint8_t i=0; i<modules_count; i++) {
43
- ret = node->cb->getInterface(interfaceNum);
+ ret += node->cb->getInterface(interfaceNum);
44
node = node->next;
45
}
46
return ret;
cores/arduino/USB/USBCore.cpp
@@ -156,6 +156,8 @@ uint32_t USBDeviceClass::sendConfiguration(uint32_t maxlen)
156
return true;
157
158
159
+ total = 0;
160
+
161
packMessages(true);
162
sendControl(&config, sizeof(ConfigDescriptor));
163
SendInterfaces(&total);
0 commit comments