File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -697,7 +697,7 @@ int spi_open(int nport)
697
697
return 0 ;
698
698
}
699
699
700
- if (spi_nports == 0 || nport < spi_nports - 1 ) {
700
+ if (spi_nports == 0 || nport >= spi_nports ) {
701
701
SPI_ERR ("No FTDI device found" );
702
702
goto open_err ;
703
703
}
@@ -779,7 +779,7 @@ int spi_open(int nport)
779
779
* http://developer.intra2net.com/mailarchive/html/libftdi/2011/msg00413.html
780
780
* http://jdelfes.blogspot.ru/2014/03/ft232r-bitbang-spi-part-2.html
781
781
*
782
- * FT2232C has 128 byte TX and 384 byte RX buffers per channel.
782
+ * FT2232C has 384 byte TX+ RX buffer per channel.
783
783
* FT2232H has 4kB RX and TX buffers per channel.
784
784
* FT4232H has 2kB RX and TX buffers per channel.
785
785
* FT232H has 1 kB RX and TX buffers.
@@ -798,7 +798,7 @@ int spi_open(int nport)
798
798
break ;
799
799
case TYPE_2232C :
800
800
ftdi_type_str = "FT2232C/D" ;
801
- ftdi_buf_size = 512 ;
801
+ ftdi_buf_size = 384 ;
802
802
break ;
803
803
case TYPE_R :
804
804
ftdi_type_str = "FT232R" ;
You can’t perform that action at this time.
0 commit comments