From f1b4c09a8409b0706a4b25c38e5215b8fe28c64c Mon Sep 17 00:00:00 2001 From: Matthias Janke Date: Fri, 21 Jul 2017 16:10:15 +0200 Subject: [PATCH] follow-up on c++ open() fix. fixes logic in open() with long argument list. --- ftdipp/ftdi.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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) -- 1.7.1