Skip to content

Commit 8bc21f7

Browse files
NicoHoodcmaglie
authored andcommitted
Small return value error check correction
1 parent 7fdb0ef commit 8bc21f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: hardware/arduino/avr/cores/arduino/PluggableUSB.cpp

+1-1
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)