The branch, master has been updated
via 39c9dbfc467f9baf2fbeea3c70ae210fca5ec7ab (commit)
from f44dbec230aaa0835be8be7d4581394ed4a92435 (commit)
- Log -----------------------------------------------------------------
commit 39c9dbfc467f9baf2fbeea3c70ae210fca5ec7ab
Author: Gerd v. Egidy <gerd.von.egidy@xxxxxxxxxxxxx>
Date: Sun Dec 6 20:13:02 2009 +0100
read only what has really been written (seems not to make a difference
though)
write out real baudrate too
-----------------------------------------------------------------------
Summary of changes:
examples/baud_test.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/baud_test.c b/examples/baud_test.c
index f6bcac9..029164a 100644
--- a/examples/baud_test.c
+++ b/examples/baud_test.c
@@ -186,12 +186,12 @@ int main(int argc, char **argv)
if(test_mode==BITMODE_SYNCBB)
{
// read the same amount of data as sent
- ftdi_read_data(&ftdic, rxbuf, txchunksize);
+ ftdi_read_data(&ftdic, rxbuf, sendsize);
}
}
duration=get_prec_time()-start;
- printf("and took %.4f seconds, this is factor
%.3f\n",duration,plan/duration);
+ printf("and took %.4f seconds, this is %.0f baud or factor
%.3f\n",duration,(plan*baud)/duration,plan/duration);
ftdi_usb_close(&ftdic);
ftdi_deinit(&ftdic);
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
|