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
1 changed files with 1 additions and 1 deletions

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;
}