mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
LimeSDR: do not call LMS_GetSampleRate if the stream is not running as data obtained is garbage
This commit is contained in:
parent
9824843684
commit
3248554cd1
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user