mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 17:58:43 -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:
parent
932dde48ca
commit
61e45297df
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user