Fix result test of example application
[libftdi] / examples / find_all_pp.cpp
index 98e5133..cf1675b 100644 (file)
@@ -54,7 +54,7 @@ int main(int argc, char **argv)
         << it->serial();
 
         // Open test
-        if(it->open())
+        if(it->open() == 0)
            std::cout << " (Open OK)";
         else
            std::cout << " (Open FAILED)";