mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 17:58:43 -05:00
SDRDaemonSink: fixed deserialization
This commit is contained in:
parent
0935071f97
commit
a60fac0679
@ -73,7 +73,7 @@ bool SDRdaemonSinkSettings::deserialize(const QByteArray& data)
|
||||
m_dataPort = uintval % (1<<16);
|
||||
d.readU32(7, &uintval, 9090);
|
||||
m_controlPort = uintval % (1<<16);
|
||||
d.readString(5, &m_specificParameters, "");
|
||||
d.readString(8, &m_specificParameters, "");
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
@ -92,8 +92,6 @@ SDRdaemonFECGui::SDRdaemonFECGui(DeviceSourceAPI *deviceAPI, QWidget* parent) :
|
||||
m_deviceAPI->setSource(m_sampleSource);
|
||||
|
||||
displaySettings();
|
||||
ui->applyButton->setEnabled(false);
|
||||
ui->sendButton->setEnabled(false);
|
||||
|
||||
char recFileNameCStr[30];
|
||||
sprintf(recFileNameCStr, "test_%d.sdriq", m_deviceAPI->getDeviceUID());
|
||||
@ -407,15 +405,12 @@ void SDRdaemonFECGui::on_applyButton_clicked(bool checked __attribute__((unused)
|
||||
m_addressEdited = false;
|
||||
m_dataPortEdited = false;
|
||||
}
|
||||
|
||||
ui->applyButton->setEnabled(false);
|
||||
}
|
||||
|
||||
void SDRdaemonFECGui::on_sendButton_clicked(bool checked __attribute__((unused)))
|
||||
{
|
||||
sendConfiguration();
|
||||
ui->specificParms->setCursorPosition(0);
|
||||
ui->sendButton->setEnabled(false);
|
||||
}
|
||||
|
||||
void SDRdaemonFECGui::sendConfiguration()
|
||||
@ -480,21 +475,18 @@ void SDRdaemonFECGui::sendConfiguration()
|
||||
}
|
||||
}
|
||||
|
||||
void SDRdaemonFECGui::on_address_textEdited(const QString& arg1 __attribute__((unused)))
|
||||
void SDRdaemonFECGui::on_address_returnPressed()
|
||||
{
|
||||
ui->applyButton->setEnabled(true);
|
||||
m_addressEdited = true;
|
||||
}
|
||||
|
||||
void SDRdaemonFECGui::on_dataPort_textEdited(const QString& arg1 __attribute__((unused)))
|
||||
void SDRdaemonFECGui::on_dataPort_returnPressed()
|
||||
{
|
||||
ui->applyButton->setEnabled(true);
|
||||
m_dataPortEdited = true;
|
||||
}
|
||||
|
||||
void SDRdaemonFECGui::on_controlPort_textEdited(const QString& arg1 __attribute__((unused)))
|
||||
void SDRdaemonFECGui::on_controlPort_returnPressed()
|
||||
{
|
||||
ui->applyButton->setEnabled(true);
|
||||
}
|
||||
|
||||
void SDRdaemonFECGui::on_dcOffset_toggled(bool checked)
|
||||
@ -515,29 +507,24 @@ void SDRdaemonFECGui::on_iqImbalance_toggled(bool checked)
|
||||
}
|
||||
}
|
||||
|
||||
void SDRdaemonFECGui::on_freq_textEdited(const QString& arg1 __attribute__((unused)))
|
||||
void SDRdaemonFECGui::on_freq_returnPressed()
|
||||
{
|
||||
ui->sendButton->setEnabled(true);
|
||||
}
|
||||
|
||||
void SDRdaemonFECGui::on_sampleRate_textEdited(const QString& arg1 __attribute__((unused)))
|
||||
void SDRdaemonFECGui::on_sampleRate_returnPressed()
|
||||
{
|
||||
ui->sendButton->setEnabled(true);
|
||||
}
|
||||
|
||||
void SDRdaemonFECGui::on_specificParms_textEdited(const QString& arg1 __attribute__((unused)))
|
||||
void SDRdaemonFECGui::on_specificParms_returnPressed()
|
||||
{
|
||||
ui->sendButton->setEnabled(true);
|
||||
}
|
||||
|
||||
void SDRdaemonFECGui::on_decim_currentIndexChanged(int index __attribute__((unused)))
|
||||
{
|
||||
ui->sendButton->setEnabled(true);
|
||||
}
|
||||
|
||||
void SDRdaemonFECGui::on_fcPos_currentIndexChanged(int index __attribute__((unused)))
|
||||
{
|
||||
ui->sendButton->setEnabled(true);
|
||||
}
|
||||
|
||||
void SDRdaemonFECGui::on_startStop_toggled(bool checked)
|
||||
|
@ -118,13 +118,13 @@ private slots:
|
||||
void on_applyButton_clicked(bool checked);
|
||||
void on_dcOffset_toggled(bool checked);
|
||||
void on_iqImbalance_toggled(bool checked);
|
||||
void on_address_textEdited(const QString& arg1);
|
||||
void on_dataPort_textEdited(const QString& arg1);
|
||||
void on_controlPort_textEdited(const QString& arg1);
|
||||
void on_address_returnPressed();
|
||||
void on_dataPort_returnPressed();
|
||||
void on_controlPort_returnPressed();
|
||||
void on_sendButton_clicked(bool checked);
|
||||
void on_freq_textEdited(const QString& arg1);
|
||||
void on_sampleRate_textEdited(const QString& arg1);
|
||||
void on_specificParms_textEdited(const QString& arg1);
|
||||
void on_freq_returnPressed();
|
||||
void on_sampleRate_returnPressed();
|
||||
void on_specificParms_returnPressed();
|
||||
void on_decim_currentIndexChanged(int index);
|
||||
void on_fcPos_currentIndexChanged(int index);
|
||||
void on_startStop_toggled(bool checked);
|
||||
|
Loading…
Reference in New Issue
Block a user