mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 10:05:46 -05:00
Noise figure: Fix saving of power on command. Add debug for running power on/off scripts.
This commit is contained in:
parent
5b169a3978
commit
15d4eeb82d
@ -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