libftdi Archives

Subject: Re: ftdi_read_data returns immediately without waiting for timeout and with no data

From: Thomas Heller <theller@xxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 18 Jun 2012 10:05:44 +0200
Am 17.06.2012 21:02, schrieb mxb7642:
When executing an ftdi_read_data, the command always returns extremely
quickly (I've timed it and it takes 0ms when the timeout is set to 50sec)
without waiting the set timeout time and always returns 0 bytes of data. My
code is below. Why is this happening? I assume this is not the intended
functionality? Thanks!

I have observed the same behaviour and do not like it.  I have proposed
a read_with_timeout function that allows to collect all data read within
a certain time interval; however the patch is (currently) only for
windows:

http://developer.intra2net.com/mailarchive/html/libftdi/2012/msg00149.html

Thomas

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