X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=src%2Fftdi_stream.c;h=b949999951c711e7c62c4808e383205d7097b12f;hp=6b5b61ce3ff79be503d44757e57cd1b81a722b07;hb=71ac8745e5d05fe9863a6281c6dd1cb7ece3e74a;hpb=ae6585f123e199bf57cff9074e46211e16f57cd4 diff --git a/src/ftdi_stream.c b/src/ftdi_stream.c index 6b5b61c..b949999 100644 --- a/src/ftdi_stream.c +++ b/src/ftdi_stream.c @@ -152,6 +152,13 @@ ftdi_readstream(struct ftdi_context *ftdi, int bufferSize = packetsPerTransfer * ftdi->max_packet_size; int xferIndex; int err = 0; + + /* Only FT2232H and FT232H know about the synchronous FIFO Mode*/ + if ((ftdi->type != TYPE_2232H) && (ftdi->type != TYPE_232H)) + { + fprintf(stderr,"Device doesn't support synchronous FIFO mode\n"); + return 1; + } /* We don't know in what state we are, switch to reset*/ if (ftdi_set_bitmode(ftdi, 0xff, BITMODE_RESET) < 0)