Bi-monthly release with minor bug fixes and improvements
18,23d17
< #ifdef D2XX
< #else
< struct ftdi_context;
< int ftdi_read_data_modified(struct ftdi_context *ftdi, unsigned char *buf, int size);
< #endif
<
312c312
< dwBytesRead=ftdi_read_data_modified(CAM8A,FT_In_Buffer,0);
---
> dwBytesRead=ftdi_read_data(CAM8A,FT_In_Buffer,0);
338c338
< dwBytesRead=ftdi_read_data_modified(CAM8A,FT_In_Buffer, 8*mdeltX);
---
> dwBytesRead=ftdi_read_data(CAM8A,FT_In_Buffer, 8*mdeltX);
367c367
< dwBytesRead=ftdi_read_data_modified(CAM8A,FT_In_Buffer, 2*mdeltX);
---
> dwBytesRead=ftdi_read_data(CAM8A,FT_In_Buffer, 2*mdeltX);
965,980d964
< }
<
< int ftdi_read_data_modified(struct ftdi_context * ftdi, unsigned char * buf, int size)
< {
< int rsize = ftdi_read_data(ftdi, buf, size);
< int nsize=size-rsize;
< int retry=0;
< while((nsize>0)&(retry<20))
< {
< retry++;
< usleep(500);
< // fprintf(stderr,"Try %d since %d<>%d \n",retry, rsize,size);
< rsize = rsize+ftdi_read_data(ftdi, buf+rsize, nsize);
< nsize = size - rsize;
< }
< return rsize;
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I fixed the code to allow image sections to be read with working starting positions.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.