aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/PluggableUSB.cpp
diff options
context:
space:
mode:
authorNicoHood <NicoHood@users.noreply.github.com>2015-10-03 08:16:40 +0200
committerCristian Maglie <c.maglie@arduino.cc>2015-10-07 12:39:18 +0200
commiteb084e235d8b5b50d2a5b2f926bde6aea75e92d9 (patch)
tree44ef75dbc46aaac133d3763c1e2322dd27279c46 /cores/arduino/PluggableUSB.cpp
parent9cd24d7a0da5b4395a218d062f57732c89654e11 (diff)
Small return value error check correction
Diffstat (limited to 'cores/arduino/PluggableUSB.cpp')
-rw-r--r--cores/arduino/PluggableUSB.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/PluggableUSB.cpp b/cores/arduino/PluggableUSB.cpp
index 582379a..7125775 100644
--- a/cores/arduino/PluggableUSB.cpp
+++ b/cores/arduino/PluggableUSB.cpp
@@ -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;
}