diff --git a/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkgui.cpp b/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkgui.cpp index 89be7331f..f7967db19 100644 --- a/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkgui.cpp +++ b/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkgui.cpp @@ -454,12 +454,30 @@ void SDRdaemonSinkGui::on_specificParms_returnPressed() sendControl(); } -void on_applyButton_clicked(bool checked __attribute__((unused))) +void SDRdaemonSinkGui::on_applyButton_clicked(bool checked __attribute__((unused))) { + m_settings.m_address = ui->address->text(); + + bool ctlOk; + int udpCtlPort = ui->controlPort->text().toInt(&ctlOk); + + if((ctlOk) && (udpCtlPort >= 1024) && (udpCtlPort < 65535)) + { + m_settings.m_controlPort = udpCtlPort; + } + + bool dataOk; + int udpDataPort = ui->dataPort->text().toInt(&dataOk); + + if((dataOk) && (udpDataPort >= 1024) && (udpDataPort < 65535)) + { + m_settings.m_dataPort = udpDataPort; + } } -void on_sendButton_clicked(bool checked __attribute__((unused))) +void SDRdaemonSinkGui::on_sendButton_clicked(bool checked __attribute__((unused))) { + sendControl(true); } void SDRdaemonSinkGui::on_startStop_toggled(bool checked) diff --git a/plugins/samplesink/sdrdaemonsink/sdrdaemonsinksettings.cpp b/plugins/samplesink/sdrdaemonsink/sdrdaemonsinksettings.cpp index f1913ff0d..e757b1397 100644 --- a/plugins/samplesink/sdrdaemonsink/sdrdaemonsinksettings.cpp +++ b/plugins/samplesink/sdrdaemonsink/sdrdaemonsinksettings.cpp @@ -25,13 +25,13 @@ SDRdaemonSinkSettings::SDRdaemonSinkSettings() void SDRdaemonSinkSettings::resetToDefaults() { m_centerFrequency = 435000*1000; - m_sampleRate = 48000; - m_log2Interp = 0; + m_sampleRate = 192000; + m_log2Interp = 4; m_txDelay = 300; m_nbFECBlocks = 0; m_address = "127.0.0.1"; - m_dataPort = 9090; - m_controlPort = 9091; + m_dataPort = 9092; + m_controlPort = 9093; m_specificParameters = ""; }