From: Matthias Janke Date: Fri, 21 Jul 2017 14:10:15 +0000 (+0200) Subject: follow-up on c++ open() fix. fixes logic in open() with long argument list. X-Git-Tag: v1.4~1 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=f1b4c09a8409b0706a4b25c38e5215b8fe28c64c;hp=6ec5ad661dd54ec5929eba9e6d8f964f30f3400f follow-up on c++ open() fix. fixes logic in open() with long argument list. --- diff --git a/ftdipp/ftdi.cpp b/ftdipp/ftdi.cpp index bdd85f5..7bf4ca6 100644 --- a/ftdipp/ftdi.cpp +++ b/ftdipp/ftdi.cpp @@ -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)