libftdi-git Archives

Subject: A library to talk to FTDI chips branch, master, updated. v1.2-25-gf838a4e

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Sat, 26 Mar 2016 13:38:11 +0100 (CET)
The branch, master has been updated
       via  f838a4e3b0466abc34823750e9eef24d785c8232 (commit)
      from  1b1bf7e481bc29ffac3b4c6a6da9eeff36beb1d0 (commit)


- Log -----------------------------------------------------------------
commit f838a4e3b0466abc34823750e9eef24d785c8232
Author: Ð?аÑ?ионов Ð?аниил <scumcoder@xxxxxxxxx>
Date:   Sat Mar 26 13:36:53 2016 +0100

    ftdi_stream: fix timeout setting: tv_usec field of timeval is in 
microseconds, not ms

-----------------------------------------------------------------------

Summary of changes:
 src/ftdi_stream.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/ftdi_stream.c b/src/ftdi_stream.c
index d295a02..2ad54c0 100644
--- a/src/ftdi_stream.c
+++ b/src/ftdi_stream.c
@@ -237,7 +237,7 @@ ftdi_readstream(struct ftdi_context *ftdi,
     {
         FTDIProgressInfo  *progress = &state.progress;
         const double progressInterval = 1.0;
-        struct timeval timeout = { 0, ftdi->usb_read_timeout };
+        struct timeval timeout = { 0, ftdi->usb_read_timeout * 1000};
         struct timeval now;
 
         int err = libusb_handle_events_timeout(ftdi->usb_ctx, &timeout);


hooks/post-receive
-- 
A library to talk to FTDI chips

--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • A library to talk to FTDI chips branch, master, updated. v1.2-25-gf838a4e, libftdi-git <=