We changes the return of the write serial from our debugging attempts back to the original void return

This commit is contained in:
Hayley 2019-06-21 09:41:47 -05:00
parent 96e8851932
commit 7e645fdf4c

View file

@ -326,11 +326,11 @@ static int thumbDV_writeSerial( FT_HANDLE handle , unsigned char * buffer, uint3
static int _check_serial( FT_HANDLE handle )
{
int ret = 0;
unsigned char reset[5] = { 0x61, 0x00, 0x01, 0x00, 0x33 };
int ret = thumbDV_writeSerial( handle, reset, 5 );
thumbDV_processSerial(handle);
thumbDV_writeSerial( handle, reset, 5 );
ret = thumbDV_processSerial(handle);
if ( ret != 0 )
{
@ -339,8 +339,8 @@ static int _check_serial( FT_HANDLE handle )
}
unsigned char get_prodID[5] = {0x61, 0x00, 0x01, 0x00, 0x30 };
ret = thumbDV_writeSerial( handle, get_prodID, 5 );
thumbDV_processSerial(handle);
thumbDV_writeSerial( handle, get_prodID, 5 );
ret = thumbDV_processSerial(handle);
if ( ret != 0 )
{