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:
parent
7fdb0efc98
commit
8bc21f7e36
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user