mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +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;
|
PUSBListNode* node;
|
||||||
for (node = rootNode; node; node = node->next) {
|
for (node = rootNode; node; node = node->next) {
|
||||||
int res = node->getInterface(interfaceNum);
|
int res = node->getInterface(interfaceNum);
|
||||||
if (res == -1)
|
if (res < 0)
|
||||||
return -1;
|
return -1;
|
||||||
sent += res;
|
sent += res;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user