From eb084e235d8b5b50d2a5b2f926bde6aea75e92d9 Mon Sep 17 00:00:00 2001 From: NicoHood Date: Sat, 3 Oct 2015 08:16:40 +0200 Subject: Small return value error check correction --- cores/arduino/PluggableUSB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cores') 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; } -- cgit v1.2.3-18-g5258