kopia lustrzana https://gitlab.com/eliggett/wfview
Allow riigctld set_mode command to not set passband
rodzic
460641972a
commit
5d2089c3e1
|
@ -635,7 +635,10 @@ void rigCtlClient::socketReadyRead()
|
||||||
quint16 passband = 0;
|
quint16 passband = 0;
|
||||||
QString vfo = "VFOA";
|
QString vfo = "VFOA";
|
||||||
QString mode = "USB";
|
QString mode = "USB";
|
||||||
if (command.length() == 3) {
|
if (command.length() == 2) {
|
||||||
|
mode = command[1];
|
||||||
|
}
|
||||||
|
else if (command.length() == 3) {
|
||||||
passband = command[2].toInt();
|
passband = command[2].toInt();
|
||||||
mode = command[1];
|
mode = command[1];
|
||||||
}
|
}
|
||||||
|
@ -644,6 +647,7 @@ void rigCtlClient::socketReadyRead()
|
||||||
mode = command[2];
|
mode = command[2];
|
||||||
vfo = command[1];
|
vfo = command[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
qDebug(logRigCtlD()) << "setting mode: VFO:" << vfo << getMode(mode) << mode << "passband" << passband << "command:" << commands;
|
qDebug(logRigCtlD()) << "setting mode: VFO:" << vfo << getMode(mode) << mode << "passband" << passband << "command:" << commands;
|
||||||
|
|
||||||
if (!mode.isEmpty())
|
if (!mode.isEmpty())
|
||||||
|
|
Ładowanie…
Reference in New Issue