Skip to content

Commit eb084e2

Browse files
NicoHoodcmaglie
authored andcommitted
Small return value error check correction
1 parent 9cd24d7 commit eb084e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/PluggableUSB.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ int PluggableUSB_::getInterface(uint8_t* interfaceNum)
3131
PUSBListNode* node;
3232
for (node = rootNode; node; node = node->next) {
3333
int res = node->getInterface(interfaceNum);
34-
if (res == -1)
34+
if (res < 0)
3535
return -1;
3636
sent += res;
3737
}

0 commit comments

Comments
 (0)