1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-18 12:54:25 +01:00

Small return value error check correction

This commit is contained in:
NicoHood 2015-10-03 08:16:40 +02:00 committed by Cristian Maglie
parent 7fdb0efc98
commit 8bc21f7e36

View File

@ -31,7 +31,7 @@ int PluggableUSB_::getInterface(uint8_t* interfaceNum)
PUSBListNode* node;
for (node = rootNode; node; node = node->next) {
int res = node->getInterface(interfaceNum);
if (res == -1)
if (res < 0)
return -1;
sent += res;
}