From 7e645fdf4c9e01b0e631587d6a42435bc3f47092 Mon Sep 17 00:00:00 2001 From: Hayley Date: Fri, 21 Jun 2019 09:41:47 -0500 Subject: [PATCH] We changes the return of the write serial from our debugging attempts back to the original void return --- DSP_API/ThumbDV/thumbDV.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DSP_API/ThumbDV/thumbDV.c b/DSP_API/ThumbDV/thumbDV.c index 85adb39..8ce1dcc 100644 --- a/DSP_API/ThumbDV/thumbDV.c +++ b/DSP_API/ThumbDV/thumbDV.c @@ -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 ) {