diff options
author | NicoHood <NicoHood@users.noreply.github.com> | 2015-10-03 08:16:40 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@arduino.cc> | 2015-10-07 12:39:18 +0200 |
commit | eb084e235d8b5b50d2a5b2f926bde6aea75e92d9 (patch) | |
tree | 44ef75dbc46aaac133d3763c1e2322dd27279c46 /cores | |
parent | 9cd24d7a0da5b4395a218d062f57732c89654e11 (diff) |
Small return value error check correction
Diffstat (limited to 'cores')
-rw-r--r-- | cores/arduino/PluggableUSB.cpp | 2 |
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; } |