From a945988671925399b3863ad8a79c8f326d12896a Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Fri, 6 Aug 2021 12:50:56 +0100 Subject: [PATCH] Fix for get_powerstat --- rigctld.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rigctld.cpp b/rigctld.cpp index 46c04e3..33b04d4 100644 --- a/rigctld.cpp +++ b/rigctld.cpp @@ -568,12 +568,14 @@ void rigCtlClient::socketReadyRead() } else if (command[0] == 0x88 || command[0] == "get_powerstat") { + /* QString resp; if (longReply && command.length() > 1) { - resp.append(QString("%1: ").arg(command[1])); + resp.append(QString("Power Status: ")); } - resp.append(QString("%1").arg(1)); // Always reply with ON + resp.append(QString("%1").arg(0)); // Always reply with ON response.append(resp); + */ } else if (command.length() > 1 && command[0] == 0x87 || command[0] == "set_powerstat") {