Added usleep to connect thread to keep from taking all of the CPU

This commit is contained in:
Hayley 2019-08-09 11:20:04 -05:00
parent 20f99daf93
commit 8b0651ea13

View file

@ -786,6 +786,7 @@ static void * _thumbDV_connectThread( void * param )
while ( !_connectThreadAbort ) {
//TODO Handle reconnection
ret = FT_GetStatus(handle, &rx_bytes, &tx_bytes, &event_dword);
usleep(1000000);
if (ret != FT_OK) {