From 5d2089c3e17972576499ffb3ab2de4f6d9ee6ecc Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Thu, 12 Jan 2023 20:28:45 +0000 Subject: [PATCH] Allow riigctld set_mode command to not set passband --- rigctld.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rigctld.cpp b/rigctld.cpp index c63fd98..1cb02f3 100644 --- a/rigctld.cpp +++ b/rigctld.cpp @@ -635,7 +635,10 @@ void rigCtlClient::socketReadyRead() quint16 passband = 0; QString vfo = "VFOA"; QString mode = "USB"; - if (command.length() == 3) { + if (command.length() == 2) { + mode = command[1]; + } + else if (command.length() == 3) { passband = command[2].toInt(); mode = command[1]; } @@ -644,6 +647,7 @@ void rigCtlClient::socketReadyRead() mode = command[2]; vfo = command[1]; } + qDebug(logRigCtlD()) << "setting mode: VFO:" << vfo << getMode(mode) << mode << "passband" << passband << "command:" << commands; if (!mode.isEmpty())