libftdi: (tomj) changed readbuffer chunksize to 64 bytes, preparations for 0.4 release
authorThomas Jarosch <opensource@intra2net.com>
Tue, 15 Jun 2004 11:54:46 +0000 (11:54 +0000)
committerThomas Jarosch <opensource@intra2net.com>
Tue, 15 Jun 2004 11:54:46 +0000 (11:54 +0000)
configure.in
configure.in.in
ftdi/ftdi.c

index 83d1f09..23789f1 100644 (file)
@@ -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
index 950cc79..42a5414 100644 (file)
@@ -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
index b40217a..97b3fcf 100644 (file)
@@ -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);
 }