mirror of
https://github.com/n5ac/smartsdr-dsp.git
synced 2025-12-06 03:01:59 +01:00
ThumbDV now v1.1.0.0 - Fix unplug/reconnect logic
This commit is contained in:
parent
7ff5441146
commit
df8dc86f5f
|
|
@ -758,9 +758,14 @@ static void * _thumbDV_readThread( void * param )
|
||||||
// Setup RX or Status change event notification
|
// Setup RX or Status change event notification
|
||||||
status = FT_SetEventNotification(handle, FT_EVENT_RXCHAR , (PVOID)&event_handle);
|
status = FT_SetEventNotification(handle, FT_EVENT_RXCHAR , (PVOID)&event_handle);
|
||||||
|
|
||||||
|
struct timespec timeout;
|
||||||
|
clock_gettime(CLOCK_REALTIME, &timeout);
|
||||||
|
|
||||||
|
timeout.tv_sec += 2; // 2 second timeout
|
||||||
|
|
||||||
// Will block until
|
// Will block until
|
||||||
pthread_mutex_lock(&event_handle.eMutex);
|
pthread_mutex_lock(&event_handle.eMutex);
|
||||||
pthread_cond_wait(&event_handle.eCondVar, &event_handle.eMutex);
|
pthread_cond_timedwait(&event_handle.eCondVar, &event_handle.eMutex, &timeout);
|
||||||
pthread_mutex_unlock(&event_handle.eMutex);
|
pthread_mutex_unlock(&event_handle.eMutex);
|
||||||
|
|
||||||
rx_bytes = 0;
|
rx_bytes = 0;
|
||||||
|
|
@ -768,7 +773,7 @@ static void * _thumbDV_readThread( void * param )
|
||||||
|
|
||||||
if ( status != FT_OK )
|
if ( status != FT_OK )
|
||||||
{
|
{
|
||||||
fprintf( stderr, "ThumbDV: error from select, status=%d\n", status );
|
fprintf( stderr, "ThumbDV: error from status, status=%d\n", status );
|
||||||
|
|
||||||
/* Set invalid FD in sched_waveform so we don't call write functions */
|
/* Set invalid FD in sched_waveform so we don't call write functions */
|
||||||
handle = NULL;
|
handle = NULL;
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1,7 +1,7 @@
|
||||||
[header]
|
[header]
|
||||||
Name: ThumbDV
|
Name: ThumbDV
|
||||||
Version: "1.0.8"
|
Version: "1.1.0"
|
||||||
Minimum-SmartSDR-Version: 1.4.2.0
|
Minimum-SmartSDR-Version: 1.10.3.0
|
||||||
Author: FlexRadio Systems
|
Author: FlexRadio Systems
|
||||||
Support-email: support@flexradio.com
|
Support-email: support@flexradio.com
|
||||||
Support-phone: 512-535-4713
|
Support-phone: 512-535-4713
|
||||||
|
|
@ -9,7 +9,7 @@ License: GPL7.3
|
||||||
Executable: "thumbdv"
|
Executable: "thumbdv"
|
||||||
|
|
||||||
[setup]
|
[setup]
|
||||||
waveform create name=ThumbDV mode=DSTR underlying_mode=DFM version=1.0.7
|
waveform create name=ThumbDV mode=DSTR underlying_mode=DFM version=1.1.0
|
||||||
waveform set ThumbDV tx=1
|
waveform set ThumbDV tx=1
|
||||||
waveform set ThumbDV rx_filter low_cut=-3500
|
waveform set ThumbDV rx_filter low_cut=-3500
|
||||||
waveform set ThumbDV rx_filter high_cut=3500
|
waveform set ThumbDV rx_filter high_cut=3500
|
||||||
|
|
|
||||||
|
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.8.0")]
|
[assembly: AssemblyVersion("1.1.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.8.0")]
|
[assembly: AssemblyFileVersion("1.1.0.0")]
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,11 @@
|
||||||
|
|
||||||
; The App Versions can be passed in and will match the AssemblyInfo for the application
|
; The App Versions can be passed in and will match the AssemblyInfo for the application
|
||||||
#ifndef MyAppVersion
|
#ifndef MyAppVersion
|
||||||
#define MyAppVersion "1.0.8.0"
|
#define MyAppVersion "1.1.0.0"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MyAppVersionWithV
|
#ifndef MyAppVersionWithV
|
||||||
#define MyAppVersionWithV "v1.0.8.0"
|
#define MyAppVersionWithV "v1.1.0.0"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MyAppName "SmartSDR D-STAR Waveform"
|
#define MyAppName "SmartSDR D-STAR Waveform"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue