From 2deccbc259e18528132211b9bcbe6541e175b5c1 Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 30 Oct 2017 03:02:45 +0100 Subject: [PATCH] LimeSDR: have still a 1ms delay after start/stop stream as it makes the Tx gain setting a bit more fluid --- plugins/samplesink/limesdroutput/limesdroutputthread.cpp | 2 ++ plugins/samplesource/limesdrinput/limesdrinputthread.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/plugins/samplesink/limesdroutput/limesdroutputthread.cpp b/plugins/samplesink/limesdroutput/limesdroutputthread.cpp index 985c9ecfb..e6da26cc8 100644 --- a/plugins/samplesink/limesdroutput/limesdroutputthread.cpp +++ b/plugins/samplesink/limesdroutput/limesdroutputthread.cpp @@ -41,6 +41,7 @@ void LimeSDROutputThread::startWork() if (LMS_StartStream(m_stream) < 0) { qCritical("LimeSDROutputThread::startWork: could not start stream"); } else { + usleep(1000); qDebug("LimeSDROutputThread::startWork: stream started"); } @@ -61,6 +62,7 @@ void LimeSDROutputThread::stopWork() if (LMS_StopStream(m_stream) < 0) { qCritical("LimeSDROutputThread::stopWork: could not stop stream"); } else { + usleep(1000); qDebug("LimeSDROutputThread::stopWork: stream stopped"); } } diff --git a/plugins/samplesource/limesdrinput/limesdrinputthread.cpp b/plugins/samplesource/limesdrinput/limesdrinputthread.cpp index 27e4375f3..7c99d004b 100644 --- a/plugins/samplesource/limesdrinput/limesdrinputthread.cpp +++ b/plugins/samplesource/limesdrinput/limesdrinputthread.cpp @@ -42,6 +42,7 @@ void LimeSDRInputThread::startWork() if (LMS_StartStream(m_stream) < 0) { qCritical("LimeSDRInputThread::startWork: could not start stream"); } else { + usleep(1000); qDebug("LimeSDRInputThread::startWork: stream started"); } @@ -62,6 +63,7 @@ void LimeSDRInputThread::stopWork() if (LMS_StopStream(m_stream) < 0) { qCritical("LimeSDRInputThread::stopWork: could not stop stream"); } else { + usleep(1000); qDebug("LimeSDRInputThread::stopWork: stream stopped"); } }