Hallo Thomas,

I had a minor correction to my c++ open patch. (see attached or
relevant thread).

Cheerio,
Matthias


Am Wed, 26 Jul 2017 17:16:39 +0200
schrieb Thomas Jarosch <[email protected]>:

> Hello,
> 
> I'm pleased to announce the second release candidate of libftdi 1.4.
> 
> Changes since 1.4rc1:
> ---------------------
> * New ftdi_usb_open_bus_addr() open function
> * C++ API: Ability to open devices with empty descriptor strings
> * C++ API: Fix enumerations for buffer purge and modem controls
> 
> Please give it some good testing. Final release is planned next week.
> 
> Download:
> https://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.4rc2.tar.bz2
> 
> GPG signature:
> https://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.4rc2.tar.bz2.sig
> 
> Best regards,
> Thomas Jarosch
> 
> 
> --
> libftdi - see http://www.intra2net.com/en/developer/libftdi for
> details. To unsubscribe send a mail to
> [email protected]   



--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [email protected]   
>From 3d95983043194019eb2d7bb567cc01b2b295fe2e Mon Sep 17 00:00:00 2001
From: Matthias Janke <[email protected]>
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 file changed, 1 insertion(+), 1 deletion(-)

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)
-- 
2.13.3

Reply via email to