mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-25 11:34:09 -04:00
Windows: MSVC2017: fixed more attribute unused cases (2)
This commit is contained in:
@@ -594,8 +594,9 @@ struct airspy_device *AirspyInput::open_airspy_from_sequence(int sequence)
|
||||
|
||||
int AirspyInput::webapiRunGet(
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
return 200;
|
||||
}
|
||||
@@ -603,8 +604,9 @@ int AirspyInput::webapiRunGet(
|
||||
int AirspyInput::webapiRun(
|
||||
bool run,
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
MsgStartStop *message = MsgStartStop::create(run);
|
||||
m_inputMessageQueue.push(message);
|
||||
@@ -620,8 +622,9 @@ int AirspyInput::webapiRun(
|
||||
|
||||
int AirspyInput::webapiSettingsGet(
|
||||
SWGSDRangel::SWGDeviceSettings& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setAirspySettings(new SWGSDRangel::SWGAirspySettings());
|
||||
response.getAirspySettings()->init();
|
||||
webapiFormatDeviceSettings(response, m_settings);
|
||||
@@ -632,8 +635,9 @@ int AirspyInput::webapiSettingsPutPatch(
|
||||
bool force,
|
||||
const QStringList& deviceSettingsKeys,
|
||||
SWGSDRangel::SWGDeviceSettings& response, // query + response
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
AirspySettings settings = m_settings;
|
||||
|
||||
if (deviceSettingsKeys.contains("centerFrequency")) {
|
||||
@@ -702,8 +706,9 @@ int AirspyInput::webapiSettingsPutPatch(
|
||||
|
||||
int AirspyInput::webapiReportGet(
|
||||
SWGSDRangel::SWGDeviceReport& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setAirspyReport(new SWGSDRangel::SWGAirspyReport());
|
||||
response.getAirspyReport()->init();
|
||||
webapiFormatDeviceReport(response);
|
||||
|
||||
@@ -486,8 +486,9 @@ airspyhf_device_t *AirspyHFInput::open_airspyhf_from_serial(const QString& seria
|
||||
|
||||
int AirspyHFInput::webapiSettingsGet(
|
||||
SWGSDRangel::SWGDeviceSettings& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
|
||||
response.getAirspyHfSettings()->init();
|
||||
webapiFormatDeviceSettings(response, m_settings);
|
||||
@@ -498,8 +499,9 @@ int AirspyHFInput::webapiSettingsPutPatch(
|
||||
bool force,
|
||||
const QStringList& deviceSettingsKeys,
|
||||
SWGSDRangel::SWGDeviceSettings& response, // query + response
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
AirspyHFSettings settings = m_settings;
|
||||
|
||||
if (deviceSettingsKeys.contains("centerFrequency")) {
|
||||
@@ -570,8 +572,9 @@ void AirspyHFInput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& respo
|
||||
|
||||
int AirspyHFInput::webapiReportGet(
|
||||
SWGSDRangel::SWGDeviceReport& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setAirspyHfReport(new SWGSDRangel::SWGAirspyHFReport());
|
||||
response.getAirspyHfReport()->init();
|
||||
webapiFormatDeviceReport(response);
|
||||
@@ -580,8 +583,9 @@ int AirspyHFInput::webapiReportGet(
|
||||
|
||||
int AirspyHFInput::webapiRunGet(
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
return 200;
|
||||
}
|
||||
@@ -589,8 +593,9 @@ int AirspyHFInput::webapiRunGet(
|
||||
int AirspyHFInput::webapiRun(
|
||||
bool run,
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
MsgStartStop *message = MsgStartStop::create(run);
|
||||
m_inputMessageQueue.push(message);
|
||||
|
||||
@@ -609,8 +609,9 @@ bladerf_lna_gain Bladerf1Input::getLnaGain(int lnaGain)
|
||||
|
||||
int Bladerf1Input::webapiSettingsGet(
|
||||
SWGSDRangel::SWGDeviceSettings& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setBladeRf1InputSettings(new SWGSDRangel::SWGBladeRF1InputSettings());
|
||||
response.getBladeRf1InputSettings()->init();
|
||||
webapiFormatDeviceSettings(response, m_settings);
|
||||
@@ -644,8 +645,9 @@ int Bladerf1Input::webapiSettingsPutPatch(
|
||||
bool force,
|
||||
const QStringList& deviceSettingsKeys,
|
||||
SWGSDRangel::SWGDeviceSettings& response, // query + response
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
BladeRF1InputSettings settings = m_settings;
|
||||
|
||||
if (deviceSettingsKeys.contains("centerFrequency")) {
|
||||
@@ -706,8 +708,9 @@ int Bladerf1Input::webapiSettingsPutPatch(
|
||||
|
||||
int Bladerf1Input::webapiRunGet(
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
return 200;
|
||||
}
|
||||
@@ -715,8 +718,9 @@ int Bladerf1Input::webapiRunGet(
|
||||
int Bladerf1Input::webapiRun(
|
||||
bool run,
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
MsgStartStop *message = MsgStartStop::create(run);
|
||||
m_inputMessageQueue.push(message);
|
||||
|
||||
@@ -967,8 +967,9 @@ bool BladeRF2Input::applySettings(const BladeRF2InputSettings& settings, bool fo
|
||||
|
||||
int BladeRF2Input::webapiSettingsGet(
|
||||
SWGSDRangel::SWGDeviceSettings& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setBladeRf2InputSettings(new SWGSDRangel::SWGBladeRF2InputSettings());
|
||||
response.getBladeRf2InputSettings()->init();
|
||||
webapiFormatDeviceSettings(response, m_settings);
|
||||
@@ -979,8 +980,9 @@ int BladeRF2Input::webapiSettingsPutPatch(
|
||||
bool force,
|
||||
const QStringList& deviceSettingsKeys,
|
||||
SWGSDRangel::SWGDeviceSettings& response, // query + response
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
BladeRF2InputSettings settings = m_settings;
|
||||
|
||||
if (deviceSettingsKeys.contains("centerFrequency")) {
|
||||
@@ -1039,8 +1041,9 @@ int BladeRF2Input::webapiSettingsPutPatch(
|
||||
return 200;
|
||||
}
|
||||
|
||||
int BladeRF2Input::webapiReportGet(SWGSDRangel::SWGDeviceReport& response, QString& errorMessage __attribute__((unused)))
|
||||
int BladeRF2Input::webapiReportGet(SWGSDRangel::SWGDeviceReport& response, QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setBladeRf2InputReport(new SWGSDRangel::SWGBladeRF2InputReport());
|
||||
response.getBladeRf2InputReport()->init();
|
||||
webapiFormatDeviceReport(response);
|
||||
@@ -1123,8 +1126,9 @@ void BladeRF2Input::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& respo
|
||||
|
||||
int BladeRF2Input::webapiRunGet(
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
return 200;
|
||||
}
|
||||
@@ -1132,8 +1136,9 @@ int BladeRF2Input::webapiRunGet(
|
||||
int BladeRF2Input::webapiRun(
|
||||
bool run,
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
MsgStartStop *message = MsgStartStop::create(run);
|
||||
m_inputMessageQueue.push(message);
|
||||
|
||||
@@ -209,7 +209,7 @@ bool FCDProGui::deserialize(const QByteArray& data)
|
||||
}
|
||||
}
|
||||
|
||||
bool FCDProGui::handleMessage(const Message& message __attribute__((unused)))
|
||||
bool FCDProGui::handleMessage(const Message& message)
|
||||
{
|
||||
if (FCDProInput::MsgConfigureFCDPro::match(message))
|
||||
{
|
||||
@@ -434,8 +434,9 @@ void FCDProGui::on_gain6_currentIndexChanged(int index)
|
||||
sendSettings();
|
||||
}
|
||||
|
||||
void FCDProGui::on_setDefaults_clicked(bool checked __attribute__((unused)))
|
||||
void FCDProGui::on_setDefaults_clicked(bool checked)
|
||||
{
|
||||
(void) checked;
|
||||
m_settings.m_lnaGainIndex = 8; // +15 dB
|
||||
//m_settings.rfFilterIndex = 0;
|
||||
m_settings.m_mixerGainIndex = 1; // +12 dB
|
||||
|
||||
@@ -493,8 +493,9 @@ void FCDProInput::set_center_freq(double freq)
|
||||
|
||||
}
|
||||
|
||||
void FCDProInput::set_bias_t(bool on __attribute__((unused)))
|
||||
void FCDProInput::set_bias_t(bool on)
|
||||
{
|
||||
(void) on;
|
||||
//quint8 cmd = on ? 1 : 0;
|
||||
|
||||
// TODO: use FCD Pro controls
|
||||
@@ -749,8 +750,9 @@ void FCDProInput::set_lo_ppm()
|
||||
|
||||
int FCDProInput::webapiRunGet(
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
return 200;
|
||||
}
|
||||
@@ -758,8 +760,9 @@ int FCDProInput::webapiRunGet(
|
||||
int FCDProInput::webapiRun(
|
||||
bool run,
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
MsgStartStop *message = MsgStartStop::create(run);
|
||||
m_inputMessageQueue.push(message);
|
||||
@@ -775,8 +778,9 @@ int FCDProInput::webapiRun(
|
||||
|
||||
int FCDProInput::webapiSettingsGet(
|
||||
SWGSDRangel::SWGDeviceSettings& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setFcdProSettings(new SWGSDRangel::SWGFCDProSettings());
|
||||
response.getFcdProSettings()->init();
|
||||
webapiFormatDeviceSettings(response, m_settings);
|
||||
@@ -787,8 +791,9 @@ int FCDProInput::webapiSettingsPutPatch(
|
||||
bool force,
|
||||
const QStringList& deviceSettingsKeys,
|
||||
SWGSDRangel::SWGDeviceSettings& response, // query + response
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
FCDProSettings settings = m_settings;
|
||||
|
||||
if (deviceSettingsKeys.contains("centerFrequency")) {
|
||||
|
||||
@@ -127,7 +127,7 @@ bool FCDProPlusGui::deserialize(const QByteArray& data)
|
||||
}
|
||||
}
|
||||
|
||||
bool FCDProPlusGui::handleMessage(const Message& message __attribute__((unused)))
|
||||
bool FCDProPlusGui::handleMessage(const Message& message)
|
||||
{
|
||||
if (FCDProPlusInput::MsgConfigureFCDProPlus::match(message))
|
||||
{
|
||||
|
||||
@@ -460,8 +460,9 @@ void FCDProPlusInput::set_lo_ppm()
|
||||
|
||||
int FCDProPlusInput::webapiRunGet(
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
return 200;
|
||||
}
|
||||
@@ -469,8 +470,9 @@ int FCDProPlusInput::webapiRunGet(
|
||||
int FCDProPlusInput::webapiRun(
|
||||
bool run,
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
MsgStartStop *message = MsgStartStop::create(run);
|
||||
m_inputMessageQueue.push(message);
|
||||
@@ -486,8 +488,9 @@ int FCDProPlusInput::webapiRun(
|
||||
|
||||
int FCDProPlusInput::webapiSettingsGet(
|
||||
SWGSDRangel::SWGDeviceSettings& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setFcdProPlusSettings(new SWGSDRangel::SWGFCDProPlusSettings());
|
||||
response.getFcdProPlusSettings()->init();
|
||||
webapiFormatDeviceSettings(response, m_settings);
|
||||
@@ -498,8 +501,9 @@ int FCDProPlusInput::webapiSettingsPutPatch(
|
||||
bool force,
|
||||
const QStringList& deviceSettingsKeys,
|
||||
SWGSDRangel::SWGDeviceSettings& response, // query + response
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
FCDProPlusSettings settings = m_settings;
|
||||
|
||||
if (deviceSettingsKeys.contains("centerFrequency")) {
|
||||
|
||||
@@ -310,8 +310,9 @@ void FileSourceGui::on_navTimeSlider_valueChanged(int value)
|
||||
}
|
||||
}
|
||||
|
||||
void FileSourceGui::on_showFileDialog_clicked(bool checked __attribute__((unused)))
|
||||
void FileSourceGui::on_showFileDialog_clicked(bool checked)
|
||||
{
|
||||
(void) checked;
|
||||
QString fileName = QFileDialog::getOpenFileName(this,
|
||||
tr("Open I/Q record file"), ".", tr("SDR I/Q Files (*.sdriq)"), 0, QFileDialog::DontUseNativeDialog);
|
||||
|
||||
|
||||
@@ -409,8 +409,9 @@ bool FileSourceInput::applySettings(const FileSourceSettings& settings, bool for
|
||||
|
||||
int FileSourceInput::webapiSettingsGet(
|
||||
SWGSDRangel::SWGDeviceSettings& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setFileSourceSettings(new SWGSDRangel::SWGFileSourceSettings());
|
||||
response.getFileSourceSettings()->init();
|
||||
webapiFormatDeviceSettings(response, m_settings);
|
||||
@@ -421,8 +422,9 @@ int FileSourceInput::webapiSettingsPutPatch(
|
||||
bool force,
|
||||
const QStringList& deviceSettingsKeys,
|
||||
SWGSDRangel::SWGDeviceSettings& response, // query + response
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
FileSourceSettings settings = m_settings;
|
||||
|
||||
if (deviceSettingsKeys.contains("fileName")) {
|
||||
@@ -450,8 +452,9 @@ int FileSourceInput::webapiSettingsPutPatch(
|
||||
|
||||
int FileSourceInput::webapiRunGet(
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
return 200;
|
||||
}
|
||||
@@ -459,8 +462,9 @@ int FileSourceInput::webapiRunGet(
|
||||
int FileSourceInput::webapiRun(
|
||||
bool run,
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
MsgStartStop *message = MsgStartStop::create(run);
|
||||
m_inputMessageQueue.push(message);
|
||||
@@ -476,8 +480,9 @@ int FileSourceInput::webapiRun(
|
||||
|
||||
int FileSourceInput::webapiReportGet(
|
||||
SWGSDRangel::SWGDeviceReport& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setFileSourceReport(new SWGSDRangel::SWGFileSourceReport());
|
||||
response.getFileSourceReport()->init();
|
||||
webapiFormatDeviceReport(response);
|
||||
|
||||
@@ -528,8 +528,9 @@ bool HackRFInput::applySettings(const HackRFInputSettings& settings, bool force)
|
||||
|
||||
int HackRFInput::webapiSettingsGet(
|
||||
SWGSDRangel::SWGDeviceSettings& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setHackRfInputSettings(new SWGSDRangel::SWGHackRFInputSettings());
|
||||
response.getHackRfInputSettings()->init();
|
||||
webapiFormatDeviceSettings(response, m_settings);
|
||||
@@ -540,8 +541,9 @@ int HackRFInput::webapiSettingsPutPatch(
|
||||
bool force,
|
||||
const QStringList& deviceSettingsKeys,
|
||||
SWGSDRangel::SWGDeviceSettings& response, // query + response
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
HackRFInputSettings settings = m_settings;
|
||||
|
||||
if (deviceSettingsKeys.contains("centerFrequency")) {
|
||||
@@ -628,8 +630,9 @@ void HackRFInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& res
|
||||
|
||||
int HackRFInput::webapiRunGet(
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
return 200;
|
||||
}
|
||||
@@ -637,8 +640,9 @@ int HackRFInput::webapiRunGet(
|
||||
int HackRFInput::webapiRun(
|
||||
bool run,
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
MsgStartStop *message = MsgStartStop::create(run);
|
||||
m_inputMessageQueue.push(message);
|
||||
|
||||
@@ -1280,8 +1280,9 @@ bool LimeSDRInput::applySettings(const LimeSDRInputSettings& settings, bool forc
|
||||
|
||||
int LimeSDRInput::webapiSettingsGet(
|
||||
SWGSDRangel::SWGDeviceSettings& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setLimeSdrInputSettings(new SWGSDRangel::SWGLimeSdrInputSettings());
|
||||
response.getLimeSdrInputSettings()->init();
|
||||
webapiFormatDeviceSettings(response, m_settings);
|
||||
@@ -1292,8 +1293,9 @@ int LimeSDRInput::webapiSettingsPutPatch(
|
||||
bool force,
|
||||
const QStringList& deviceSettingsKeys,
|
||||
SWGSDRangel::SWGDeviceSettings& response, // query + response
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
LimeSDRInputSettings settings = m_settings;
|
||||
|
||||
if (deviceSettingsKeys.contains("antennaPath")) {
|
||||
@@ -1409,8 +1411,9 @@ void LimeSDRInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& re
|
||||
|
||||
int LimeSDRInput::webapiReportGet(
|
||||
SWGSDRangel::SWGDeviceReport& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setLimeSdrInputReport(new SWGSDRangel::SWGLimeSdrInputReport());
|
||||
response.getLimeSdrInputReport()->init();
|
||||
webapiFormatDeviceReport(response);
|
||||
@@ -1419,8 +1422,9 @@ int LimeSDRInput::webapiReportGet(
|
||||
|
||||
int LimeSDRInput::webapiRunGet(
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
return 200;
|
||||
}
|
||||
@@ -1428,8 +1432,9 @@ int LimeSDRInput::webapiRunGet(
|
||||
int LimeSDRInput::webapiRun(
|
||||
bool run,
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
MsgStartStop *message = MsgStartStop::create(run);
|
||||
m_inputMessageQueue.push(message);
|
||||
|
||||
@@ -39,7 +39,7 @@ public:
|
||||
|
||||
virtual void startWork();
|
||||
virtual void stopWork();
|
||||
virtual void setDeviceSampleRate(int sampleRate __attribute__((unused))) {}
|
||||
virtual void setDeviceSampleRate(int sampleRate) { (void) sampleRate; }
|
||||
virtual bool isRunning() { return m_running; }
|
||||
void setLog2Decimation(unsigned int log2_decim);
|
||||
|
||||
|
||||
@@ -402,8 +402,9 @@ bool PerseusInput::applySettings(const PerseusSettings& settings, bool force)
|
||||
|
||||
int PerseusInput::webapiRunGet(
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
return 200;
|
||||
}
|
||||
@@ -411,8 +412,9 @@ int PerseusInput::webapiRunGet(
|
||||
int PerseusInput::webapiRun(
|
||||
bool run,
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
MsgStartStop *message = MsgStartStop::create(run);
|
||||
m_inputMessageQueue.push(message);
|
||||
@@ -428,8 +430,9 @@ int PerseusInput::webapiRun(
|
||||
|
||||
int PerseusInput::webapiSettingsGet(
|
||||
SWGSDRangel::SWGDeviceSettings& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setPerseusSettings(new SWGSDRangel::SWGPerseusSettings());
|
||||
response.getPerseusSettings()->init();
|
||||
webapiFormatDeviceSettings(response, m_settings);
|
||||
@@ -440,8 +443,9 @@ int PerseusInput::webapiSettingsPutPatch(
|
||||
bool force,
|
||||
const QStringList& deviceSettingsKeys,
|
||||
SWGSDRangel::SWGDeviceSettings& response, // query + response
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
PerseusSettings settings = m_settings;
|
||||
|
||||
if (deviceSettingsKeys.contains("centerFrequency")) {
|
||||
@@ -495,8 +499,9 @@ int PerseusInput::webapiSettingsPutPatch(
|
||||
|
||||
int PerseusInput::webapiReportGet(
|
||||
SWGSDRangel::SWGDeviceReport& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setPerseusReport(new SWGSDRangel::SWGPerseusReport());
|
||||
response.getPerseusReport()->init();
|
||||
webapiFormatDeviceReport(response);
|
||||
|
||||
@@ -111,8 +111,9 @@ void PerseusThread::callback(const uint8_t* buf, qint32 len)
|
||||
m_sampleFifo->write(m_convertBuffer.begin(), it);
|
||||
}
|
||||
|
||||
int PerseusThread::rx_callback(void *buf, int buf_size, void *extra __attribute__((unused)))
|
||||
int PerseusThread::rx_callback(void *buf, int buf_size, void *extra)
|
||||
{
|
||||
(void) extra;
|
||||
qint32 nbIAndQ = buf_size / 3; // 3 bytes per I or Q
|
||||
m_this->callback((uint8_t*) buf, nbIAndQ);
|
||||
return 0;
|
||||
|
||||
@@ -619,8 +619,9 @@ float PlutoSDRInput::getTemperature()
|
||||
|
||||
int PlutoSDRInput::webapiRunGet(
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
return 200;
|
||||
}
|
||||
@@ -628,8 +629,9 @@ int PlutoSDRInput::webapiRunGet(
|
||||
int PlutoSDRInput::webapiRun(
|
||||
bool run,
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
MsgStartStop *message = MsgStartStop::create(run);
|
||||
m_inputMessageQueue.push(message);
|
||||
@@ -645,8 +647,9 @@ int PlutoSDRInput::webapiRun(
|
||||
|
||||
int PlutoSDRInput::webapiSettingsGet(
|
||||
SWGSDRangel::SWGDeviceSettings& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setPlutoSdrInputSettings(new SWGSDRangel::SWGPlutoSdrInputSettings());
|
||||
response.getPlutoSdrInputSettings()->init();
|
||||
webapiFormatDeviceSettings(response, m_settings);
|
||||
@@ -657,8 +660,9 @@ int PlutoSDRInput::webapiSettingsPutPatch(
|
||||
bool force,
|
||||
const QStringList& deviceSettingsKeys,
|
||||
SWGSDRangel::SWGDeviceSettings& response, // query + response
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
PlutoSDRInputSettings settings = m_settings;
|
||||
|
||||
if (deviceSettingsKeys.contains("centerFrequency")) {
|
||||
@@ -737,8 +741,9 @@ int PlutoSDRInput::webapiSettingsPutPatch(
|
||||
|
||||
int PlutoSDRInput::webapiReportGet(
|
||||
SWGSDRangel::SWGDeviceReport& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setPlutoSdrInputReport(new SWGSDRangel::SWGPlutoSdrInputReport());
|
||||
response.getPlutoSdrInputReport()->init();
|
||||
webapiFormatDeviceReport(response);
|
||||
|
||||
@@ -130,7 +130,7 @@ bool PlutoSDRInputGui::deserialize(const QByteArray& data)
|
||||
}
|
||||
}
|
||||
|
||||
bool PlutoSDRInputGui::handleMessage(const Message& message __attribute__((unused)))
|
||||
bool PlutoSDRInputGui::handleMessage(const Message& message)
|
||||
{
|
||||
if (PlutoSDRInput::MsgConfigurePlutoSDR::match(message))
|
||||
{
|
||||
|
||||
@@ -37,7 +37,7 @@ public:
|
||||
|
||||
virtual void startWork();
|
||||
virtual void stopWork();
|
||||
virtual void setDeviceSampleRate(int sampleRate __attribute__((unused))) {}
|
||||
virtual void setDeviceSampleRate(int sampleRate) { (void) sampleRate; }
|
||||
virtual bool isRunning() { return m_running; }
|
||||
void setLog2Decimation(unsigned int log2_decim);
|
||||
void setFcPos(int fcPos);
|
||||
|
||||
@@ -536,8 +536,9 @@ void RTLSDRInput::set_ds_mode(int on)
|
||||
|
||||
int RTLSDRInput::webapiSettingsGet(
|
||||
SWGSDRangel::SWGDeviceSettings& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setRtlSdrSettings(new SWGSDRangel::SWGRtlSdrSettings());
|
||||
response.getRtlSdrSettings()->init();
|
||||
webapiFormatDeviceSettings(response, m_settings);
|
||||
@@ -548,8 +549,9 @@ int RTLSDRInput::webapiSettingsPutPatch(
|
||||
bool force,
|
||||
const QStringList& deviceSettingsKeys,
|
||||
SWGSDRangel::SWGDeviceSettings& response, // query + response
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
RTLSDRSettings settings = m_settings;
|
||||
|
||||
if (deviceSettingsKeys.contains("agc")) {
|
||||
@@ -638,8 +640,9 @@ void RTLSDRInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& res
|
||||
|
||||
int RTLSDRInput::webapiRunGet(
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
return 200;
|
||||
}
|
||||
@@ -647,8 +650,9 @@ int RTLSDRInput::webapiRunGet(
|
||||
int RTLSDRInput::webapiRun(
|
||||
bool run,
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
MsgStartStop *message = MsgStartStop::create(run);
|
||||
m_inputMessageQueue.push(message);
|
||||
@@ -664,8 +668,9 @@ int RTLSDRInput::webapiRun(
|
||||
|
||||
int RTLSDRInput::webapiReportGet(
|
||||
SWGSDRangel::SWGDeviceReport& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setRtlSdrReport(new SWGSDRangel::SWGRtlSdrReport());
|
||||
response.getRtlSdrReport()->init();
|
||||
webapiFormatDeviceReport(response);
|
||||
|
||||
@@ -163,8 +163,9 @@ qint64 SDRdaemonSourceGui::getCenterFrequency() const
|
||||
return m_streamCenterFrequency;
|
||||
}
|
||||
|
||||
void SDRdaemonSourceGui::setCenterFrequency(qint64 centerFrequency __attribute__((unused)))
|
||||
void SDRdaemonSourceGui::setCenterFrequency(qint64 centerFrequency)
|
||||
{
|
||||
(void) centerFrequency;
|
||||
}
|
||||
|
||||
bool SDRdaemonSourceGui::handleMessage(const Message& message)
|
||||
@@ -308,8 +309,9 @@ void SDRdaemonSourceGui::sendSettings()
|
||||
m_updateTimer.start(100);
|
||||
}
|
||||
|
||||
void SDRdaemonSourceGui::on_apiApplyButton_clicked(bool checked __attribute__((unused)))
|
||||
void SDRdaemonSourceGui::on_apiApplyButton_clicked(bool checked)
|
||||
{
|
||||
(void) checked;
|
||||
m_settings.m_apiAddress = ui->apiAddress->text();
|
||||
|
||||
bool ctlOk;
|
||||
@@ -326,8 +328,9 @@ void SDRdaemonSourceGui::on_apiApplyButton_clicked(bool checked __attribute__((u
|
||||
m_networkManager->get(m_networkRequest);
|
||||
}
|
||||
|
||||
void SDRdaemonSourceGui::on_dataApplyButton_clicked(bool checked __attribute__((unused)))
|
||||
void SDRdaemonSourceGui::on_dataApplyButton_clicked(bool checked)
|
||||
{
|
||||
(void) checked;
|
||||
m_settings.m_dataAddress = ui->dataAddress->text();
|
||||
|
||||
bool dataOk;
|
||||
@@ -427,8 +430,9 @@ void SDRdaemonSourceGui::on_record_toggled(bool checked)
|
||||
m_sampleSource->getInputMessageQueue()->push(message);
|
||||
}
|
||||
|
||||
void SDRdaemonSourceGui::on_eventCountsReset_clicked(bool checked __attribute__((unused)))
|
||||
void SDRdaemonSourceGui::on_eventCountsReset_clicked(bool checked)
|
||||
{
|
||||
(void) checked;
|
||||
m_countUnrecoverable = 0;
|
||||
m_countRecovered = 0;
|
||||
m_eventsTime.start();
|
||||
|
||||
@@ -134,8 +134,9 @@ quint64 SDRdaemonSourceInput::getCenterFrequency() const
|
||||
return m_SDRdaemonUDPHandler->getCenterFrequency();
|
||||
}
|
||||
|
||||
void SDRdaemonSourceInput::setCenterFrequency(qint64 centerFrequency __attribute__((unused)))
|
||||
void SDRdaemonSourceInput::setCenterFrequency(qint64 centerFrequency)
|
||||
{
|
||||
(void) centerFrequency;
|
||||
}
|
||||
|
||||
std::time_t SDRdaemonSourceInput::getStartingTimeStamp() const
|
||||
@@ -241,8 +242,9 @@ void SDRdaemonSourceInput::applySettings(const SDRdaemonSourceSettings& settings
|
||||
|
||||
int SDRdaemonSourceInput::webapiRunGet(
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
return 200;
|
||||
}
|
||||
@@ -250,8 +252,9 @@ int SDRdaemonSourceInput::webapiRunGet(
|
||||
int SDRdaemonSourceInput::webapiRun(
|
||||
bool run,
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
MsgStartStop *message = MsgStartStop::create(run);
|
||||
m_inputMessageQueue.push(message);
|
||||
@@ -267,8 +270,9 @@ int SDRdaemonSourceInput::webapiRun(
|
||||
|
||||
int SDRdaemonSourceInput::webapiSettingsGet(
|
||||
SWGSDRangel::SWGDeviceSettings& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setSdrDaemonSourceSettings(new SWGSDRangel::SWGSDRdaemonSourceSettings());
|
||||
response.getSdrDaemonSourceSettings()->init();
|
||||
webapiFormatDeviceSettings(response, m_settings);
|
||||
@@ -279,8 +283,9 @@ int SDRdaemonSourceInput::webapiSettingsPutPatch(
|
||||
bool force,
|
||||
const QStringList& deviceSettingsKeys,
|
||||
SWGSDRangel::SWGDeviceSettings& response, // query + response
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
SDRdaemonSourceSettings settings = m_settings;
|
||||
|
||||
if (deviceSettingsKeys.contains("apiAddress")) {
|
||||
@@ -336,8 +341,9 @@ void SDRdaemonSourceInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSett
|
||||
|
||||
int SDRdaemonSourceInput::webapiReportGet(
|
||||
SWGSDRangel::SWGDeviceReport& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setSdrDaemonSourceReport(new SWGSDRangel::SWGSDRdaemonSourceReport());
|
||||
response.getSdrDaemonSourceReport()->init();
|
||||
webapiFormatDeviceReport(response);
|
||||
|
||||
@@ -625,8 +625,9 @@ bool SDRPlayInput::setDeviceCenterFrequency(quint64 freq_hz)
|
||||
|
||||
int SDRPlayInput::webapiRunGet(
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
return 200;
|
||||
}
|
||||
@@ -634,8 +635,9 @@ int SDRPlayInput::webapiRunGet(
|
||||
int SDRPlayInput::webapiRun(
|
||||
bool run,
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
MsgStartStop *message = MsgStartStop::create(run);
|
||||
m_inputMessageQueue.push(message);
|
||||
@@ -651,8 +653,9 @@ int SDRPlayInput::webapiRun(
|
||||
|
||||
int SDRPlayInput::webapiSettingsGet(
|
||||
SWGSDRangel::SWGDeviceSettings& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setSdrPlaySettings(new SWGSDRangel::SWGSDRPlaySettings());
|
||||
response.getSdrPlaySettings()->init();
|
||||
webapiFormatDeviceSettings(response, m_settings);
|
||||
@@ -663,8 +666,9 @@ int SDRPlayInput::webapiSettingsPutPatch(
|
||||
bool force,
|
||||
const QStringList& deviceSettingsKeys,
|
||||
SWGSDRangel::SWGDeviceSettings& response, // query + response
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
SDRPlaySettings settings = m_settings;
|
||||
|
||||
if (deviceSettingsKeys.contains("centerFrequency")) {
|
||||
@@ -759,8 +763,9 @@ void SDRPlayInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& re
|
||||
|
||||
int SDRPlayInput::webapiReportGet(
|
||||
SWGSDRangel::SWGDeviceReport& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setSdrPlayReport(new SWGSDRangel::SWGSDRPlayReport());
|
||||
response.getSdrPlayReport()->init();
|
||||
webapiFormatDeviceReport(response);
|
||||
|
||||
@@ -642,8 +642,9 @@ QByteArray SoapySDRInput::serialize() const
|
||||
return s.final();
|
||||
}
|
||||
|
||||
bool SoapySDRInput::deserialize(const QByteArray& data __attribute__((unused)))
|
||||
bool SoapySDRInput::deserialize(const QByteArray& data)
|
||||
{
|
||||
(void) data;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -663,7 +664,7 @@ quint64 SoapySDRInput::getCenterFrequency() const
|
||||
return m_settings.m_centerFrequency;
|
||||
}
|
||||
|
||||
void SoapySDRInput::setCenterFrequency(qint64 centerFrequency __attribute__((unused)))
|
||||
void SoapySDRInput::setCenterFrequency(qint64 centerFrequency)
|
||||
{
|
||||
SoapySDRInputSettings settings = m_settings;
|
||||
settings.m_centerFrequency = centerFrequency;
|
||||
@@ -712,7 +713,7 @@ void SoapySDRInput::updateGains(SoapySDR::Device *dev, int requestedChannel, Soa
|
||||
}
|
||||
}
|
||||
|
||||
bool SoapySDRInput::handleMessage(const Message& message __attribute__((unused)))
|
||||
bool SoapySDRInput::handleMessage(const Message& message)
|
||||
{
|
||||
if (MsgConfigureSoapySDRInput::match(message))
|
||||
{
|
||||
|
||||
@@ -198,16 +198,18 @@ void TestSourceGui::on_sampleSize_currentIndexChanged(int index)
|
||||
sendSettings();
|
||||
}
|
||||
|
||||
void TestSourceGui::on_amplitudeCoarse_valueChanged(int value __attribute__((unused)))
|
||||
void TestSourceGui::on_amplitudeCoarse_valueChanged(int value)
|
||||
{
|
||||
(void) value;
|
||||
updateAmpFineLimit();
|
||||
displayAmplitude();
|
||||
m_settings.m_amplitudeBits = ui->amplitudeCoarse->value() * 100 + ui->amplitudeFine->value();
|
||||
sendSettings();
|
||||
}
|
||||
|
||||
void TestSourceGui::on_amplitudeFine_valueChanged(int value __attribute__((unused)))
|
||||
void TestSourceGui::on_amplitudeFine_valueChanged(int value)
|
||||
{
|
||||
(void) value;
|
||||
displayAmplitude();
|
||||
m_settings.m_amplitudeBits = ui->amplitudeCoarse->value() * 100 + ui->amplitudeFine->value();
|
||||
sendSettings();
|
||||
|
||||
@@ -388,8 +388,9 @@ bool TestSourceInput::applySettings(const TestSourceSettings& settings, bool for
|
||||
|
||||
int TestSourceInput::webapiRunGet(
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
return 200;
|
||||
}
|
||||
@@ -397,8 +398,9 @@ int TestSourceInput::webapiRunGet(
|
||||
int TestSourceInput::webapiRun(
|
||||
bool run,
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
MsgStartStop *message = MsgStartStop::create(run);
|
||||
m_inputMessageQueue.push(message);
|
||||
@@ -414,8 +416,9 @@ int TestSourceInput::webapiRun(
|
||||
|
||||
int TestSourceInput::webapiSettingsGet(
|
||||
SWGSDRangel::SWGDeviceSettings& response,
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setTestSourceSettings(new SWGSDRangel::SWGTestSourceSettings());
|
||||
response.getTestSourceSettings()->init();
|
||||
webapiFormatDeviceSettings(response, m_settings);
|
||||
@@ -426,8 +429,9 @@ int TestSourceInput::webapiSettingsPutPatch(
|
||||
bool force,
|
||||
const QStringList& deviceSettingsKeys,
|
||||
SWGSDRangel::SWGDeviceSettings& response, // query + response
|
||||
QString& errorMessage __attribute__((unused)))
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
TestSourceSettings settings = m_settings;
|
||||
|
||||
if (deviceSettingsKeys.contains("centerFrequency")) {
|
||||
|
||||
Reference in New Issue
Block a user