From: Gerd v. Egidy Date: Sun, 6 Dec 2009 20:03:03 +0000 (+0100) Subject: fix sync bitbang read-timing X-Git-Tag: v0.17~12 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=ac432dd8ec073a41a661e89b8b48d0654ce4b73b fix sync bitbang read-timing --- diff --git a/examples/baud_test.c b/examples/baud_test.c index 029164a..4a7d4d5 100644 --- a/examples/baud_test.c +++ b/examples/baud_test.c @@ -167,6 +167,10 @@ int main(int argc, char **argv) start=get_prec_time(); + // don't wait for more data to arrive, take what we get and keep on sending + // yes, we really would like to have libusb 1.0+ with async read/write... + ftdic.usb_read_timeout=1; + i=0; while(i < datasize) {