mirror of
https://github.com/n5ac/smartsdr-dsp.git
synced 2025-12-06 03:01:59 +01:00
Merge pull request #16 from n5ac/cpu_fix
Added usleep to connect thread to keep from taking all of the CPU
This commit is contained in:
commit
762297a7d5
|
|
@ -784,7 +784,9 @@ static void * _thumbDV_connectThread( void * param )
|
|||
FT_HANDLE handle = *(FT_HANDLE *) param;
|
||||
|
||||
while ( !_connectThreadAbort ) {
|
||||
//TODO Handle reconnection
|
||||
|
||||
//waits 1 second before checking status to prevent CPU hogging
|
||||
usleep(1000000);
|
||||
ret = FT_GetStatus(handle, &rx_bytes, &tx_bytes, &event_dword);
|
||||
|
||||
if (ret != FT_OK) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue