X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=ftdi%2Fftdi.c;h=97b3fcf13de227000c7a7a320345e0b9bab2aadf;hp=b40217ae8b0a3cfbd5c9bf7fa383f131368ad2a4;hb=41b8ae57a916e98d9c5c4d2e2fa972883a162650;hpb=98452d97079f1708f333d12340c4102c761130e5 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); }