From aa929a1e790fd8b57fe6683077b8bb253e32dc72 Mon Sep 17 00:00:00 2001 From: Kenji Rikitake Date: Sun, 25 Jun 2023 13:51:51 +0900 Subject: [PATCH] Add answering code for rigctl \get_powerstat * Answer "1" (Power is ON) to \get_powerstat inquiry --- misc_modules/rigctl_server/src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/misc_modules/rigctl_server/src/main.cpp b/misc_modules/rigctl_server/src/main.cpp index 801bec3f..89520ef9 100644 --- a/misc_modules/rigctl_server/src/main.cpp +++ b/misc_modules/rigctl_server/src/main.cpp @@ -690,6 +690,11 @@ private: "0\n" /* RIG_PARM_NONE */; client->write(resp.size(), (uint8_t*)resp.c_str()); } + // This get_powerstat stuff is a wordaround for WSJT-X 2.7.0 + else if (parts[0] == "\\get_powerstat") { + resp = "1\n"; + client->write(resp.size(), (uint8_t*)resp.c_str()); + } else { // If command is not recognized, return error flog::error("Rigctl client sent invalid command: '{0}'", cmd);