Remote Input: do not apply remote channel settings before they get updated via stream

pull/1108/head
f4exb 2022-01-11 23:23:18 +01:00
rodzic ac28cadffa
commit 180d554812
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -69,7 +69,6 @@ RemoteInput::RemoteInput(DeviceAPI *deviceAPI) :
RemoteInput::~RemoteInput()
{
disconnect(m_remoteInputUDPHandler, SIGNAL(metaChanged()), this, SLOT(handleMetaChanged()));
disconnect(m_networkManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(networkManagerFinished(QNetworkReply*)));
delete m_networkManager;
stop();
@ -328,6 +327,10 @@ void RemoteInput::applySettings(const RemoteInputSettings& settings, bool force)
void RemoteInput::applyRemoteChannelSettings(const RemoteChannelSettings& settings)
{
if (m_remoteChannelSettings.m_deviceSampleRate == 1) { // uninitialized
return;
}
SWGSDRangel::SWGChannelSettings *swgChannelSettings = new SWGSDRangel::SWGChannelSettings();;
swgChannelSettings->setOriginatorChannelIndex(0);
swgChannelSettings->setOriginatorDeviceSetIndex(m_deviceAPI->getDeviceSetIndex());