follow-up on c++ open() fix. fixes logic in open() with long argument list.
[libftdi] / ftdipp / ftdi.cpp
index bdd85f5..7bf4ca6 100644 (file)
@@ -106,7 +106,7 @@ int Context::open(int vendor, int product, const std::string& description, const
     if (ret < 0)
        return ret;
 
-    return get_strings_and_reopen(false,description.empty(),serial.empty());
+    return get_strings_and_reopen(false,!description.empty(),!serial.empty());
 }
 
 int Context::open(const std::string& description)