mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-16 05:11:49 -05:00
Merge pull request #1603 from srcejon/noise_figure_fix_script_settings
Noise figure: Fix saving of power on command setting.
This commit is contained in:
commit
9b277dcf9a
@ -411,7 +411,11 @@ void NoiseFigure::powerOn()
|
||||
#endif
|
||||
QString program = allArgs[0];
|
||||
allArgs.pop_front();
|
||||
QProcess::execute(program, allArgs);
|
||||
qDebug() << "NoiseFigure::powerOn(): Executing" << program << allArgs;
|
||||
int exitCode = QProcess::execute(program, allArgs);
|
||||
if (exitCode) {
|
||||
qWarning() << "NoiseFigure::powerOn():" << program << "exited with code" << exitCode;
|
||||
}
|
||||
}
|
||||
|
||||
QStringList commands = m_settings.m_powerOnSCPI.split("\n");
|
||||
@ -434,7 +438,11 @@ void NoiseFigure::powerOff()
|
||||
#endif
|
||||
QString program = allArgs[0];
|
||||
allArgs.pop_front();
|
||||
QProcess::execute(program, allArgs);
|
||||
qDebug() << "NoiseFigure::powerOff(): Executing" << program << allArgs;
|
||||
int exitCode = QProcess::execute(program, allArgs);
|
||||
if (exitCode) {
|
||||
qWarning() << "NoiseFigure::powerOff():" << program << "exited with code" << exitCode;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
const PluginDescriptor NoiseFigurePlugin::m_pluginDescriptor = {
|
||||
NoiseFigure::m_channelId,
|
||||
QStringLiteral("Noise Figure"),
|
||||
QStringLiteral("7.3.1"),
|
||||
QStringLiteral("7.10.1"),
|
||||
QStringLiteral("(c) Jon Beniston, M7RCE"),
|
||||
QStringLiteral("https://github.com/f4exb/sdrangel"),
|
||||
true,
|
||||
|
@ -93,7 +93,7 @@ QByteArray NoiseFigureSettings::serialize() const
|
||||
s.writeString(10, m_visaDevice);
|
||||
s.writeString(11, m_powerOnSCPI);
|
||||
s.writeString(12, m_powerOffSCPI);
|
||||
s.writeString(13, m_powerOffCommand);
|
||||
s.writeString(13, m_powerOnCommand);
|
||||
s.writeString(14, m_powerOffCommand);
|
||||
s.writeDouble(15, m_powerDelay);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user