From: Thomas Jarosch Date: Tue, 15 Jun 2004 11:54:46 +0000 (+0000) Subject: libftdi: (tomj) changed readbuffer chunksize to 64 bytes, preparations for 0.4 release X-Git-Tag: v0.4~3 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=41b8ae57a916e98d9c5c4d2e2fa972883a162650 libftdi: (tomj) changed readbuffer chunksize to 64 bytes, preparations for 0.4 release --- diff --git a/configure.in b/configure.in index 83d1f09..23789f1 100644 --- a/configure.in +++ b/configure.in @@ -38,7 +38,7 @@ dnl Perform program name transformation AC_ARG_PROGRAM dnl Automake doc recommends to do this only here. (Janos) -AM_INIT_AUTOMAKE(libftdi, 0.3) dnl searches for some needed programs +AM_INIT_AUTOMAKE(libftdi, 0.4) dnl searches for some needed programs dnl almost the same like KDE_SET_PEFIX but the path is /usr/local dnl diff --git a/configure.in.in b/configure.in.in index 950cc79..42a5414 100644 --- a/configure.in.in +++ b/configure.in.in @@ -38,7 +38,7 @@ dnl Perform program name transformation AC_ARG_PROGRAM dnl Automake doc recommends to do this only here. (Janos) -AM_INIT_AUTOMAKE(libftdi, 0.3) dnl searches for some needed programs +AM_INIT_AUTOMAKE(libftdi, 0.4) dnl searches for some needed programs dnl almost the same like KDE_SET_PEFIX but the path is /usr/local dnl diff --git a/ftdi/ftdi.c b/ftdi/ftdi.c index b40217a..97b3fcf 100644 --- a/ftdi/ftdi.c +++ b/ftdi/ftdi.c @@ -44,8 +44,11 @@ int ftdi_init(struct ftdi_context *ftdi) { ftdi->error_str = NULL; - // all fine. Now allocate the readbuffer - return ftdi_read_data_set_chunksize(ftdi, 4096); + /* All fine. Now allocate the readbuffer + Note: A readbuffer size above 64 bytes results in buggy input. + This seems to be a hardware limitation as noted + in the ftdi_sio driver */ + return ftdi_read_data_set_chunksize(ftdi, 64); }