mirror of
https://github.com/n5ac/smartsdr-dsp.git
synced 2026-03-20 19:04:37 +01:00
We changes the return of the write serial from our debugging attempts back to the original void return
This commit is contained in:
parent
96e8851932
commit
7e645fdf4c
|
|
@ -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 )
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue