LimeSDR: do not call LMS_GetSampleRate if the stream is not running as data obtained is garbage

This commit is contained in:
f4exb 2018-01-08 01:15:17 +01:00
parent 9824843684
commit 3248554cd1
2 changed files with 2 additions and 2 deletions

View File

@ -546,7 +546,7 @@ bool LimeSDROutput::handleMessage(const Message& message)
{
DeviceLimeSDRShared::MsgReportBuddyChange& report = (DeviceLimeSDRShared::MsgReportBuddyChange&) message;
if (report.getRxElseTx())
if (report.getRxElseTx() && m_running)
{
double host_Hz;
double rf_Hz;

View File

@ -550,7 +550,7 @@ bool LimeSDRInput::handleMessage(const Message& message)
m_settings.m_log2HardDecim = report.getLog2HardDecimInterp();
m_settings.m_centerFrequency = report.getCenterFrequency();
}
else
else if (m_running)
{
double host_Hz;
double rf_Hz;