Add quick fix for rigctld fmv issue

knobtest
Phil Taylor 2022-09-20 18:56:36 +01:00
rodzic 4bd80cb9e5
commit ae6f1f2ca3
1 zmienionych plików z 22 dodań i 0 usunięć

Wyświetl plik

@ -313,6 +313,28 @@ void rigCtlClient::socketReadyRead()
}
}
else if (command[0] == "fmv") {
QString resp;
if (rigState->getChar(CURRENTVFO) == 0) {
resp.append(QString("%1").arg(rigState->getInt64(VFOAFREQ)));
}
else {
resp.append(QString("%1").arg(rigState->getInt64(VFOBFREQ)));
}
response.append(resp);
resp = "";
response.append(QString("%1").arg(getMode(rigState->getChar(MODE), rigState->getBool(DATAMODE))));
response.append(QString("%1").arg(getFilter(rigState->getChar(MODE), rigState->getChar(FILTER))));
if (rigState->getChar(CURRENTVFO) == 0) {
resp.append("VFOA");
}
else {
resp.append("VFOB");
}
response.append(resp);
}
else if (command[0] == "f" || command[0] == "get_freq")
{
QString resp;