1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-23 08:28:36 -05:00

HackRF plugins: shorten wait time in running loop so that start/stop can react faster (delay set to 200ms instead of 1s)

This commit is contained in:
f4exb 2017-01-09 00:08:33 +01:00
parent 932dde48ca
commit 61e45297df
2 changed files with 4 additions and 2 deletions

View File

@ -18,6 +18,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include <unistd.h>
#include "dsp/samplesourcefifo.h" #include "dsp/samplesourcefifo.h"
@ -81,7 +82,7 @@ void HackRFOutputThread::run()
{ {
while ((m_running) && (hackrf_is_streaming(m_dev) == HACKRF_TRUE)) while ((m_running) && (hackrf_is_streaming(m_dev) == HACKRF_TRUE))
{ {
sleep(1); usleep(200000);
} }
} }

View File

@ -18,6 +18,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include <unistd.h>
#include "dsp/samplesinkfifo.h" #include "dsp/samplesinkfifo.h"
@ -88,7 +89,7 @@ void HackRFInputThread::run()
{ {
while ((m_running) && (hackrf_is_streaming(m_dev) == HACKRF_TRUE)) while ((m_running) && (hackrf_is_streaming(m_dev) == HACKRF_TRUE))
{ {
sleep(1); usleep(200000);
} }
} }