From ae6f1f2ca35ab0eaeb79d2c25f7fb1e98f250a6d Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Tue, 20 Sep 2022 18:56:36 +0100 Subject: [PATCH] Add quick fix for rigctld fmv issue --- rigctld.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/rigctld.cpp b/rigctld.cpp index a3eadae..ce05783 100644 --- a/rigctld.cpp +++ b/rigctld.cpp @@ -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;