Skip to content

Commit aa929a1

Browse files
committed
Add answering code for rigctl \get_powerstat
* Answer "1" (Power is ON) to \get_powerstat inquiry
1 parent 5acdab0 commit aa929a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

misc_modules/rigctl_server/src/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,11 @@ class SigctlServerModule : public ModuleManager::Instance {
690690
"0\n" /* RIG_PARM_NONE */;
691691
client->write(resp.size(), (uint8_t*)resp.c_str());
692692
}
693+
// This get_powerstat stuff is a wordaround for WSJT-X 2.7.0
694+
else if (parts[0] == "\\get_powerstat") {
695+
resp = "1\n";
696+
client->write(resp.size(), (uint8_t*)resp.c_str());
697+
}
693698
else {
694699
// If command is not recognized, return error
695700
flog::error("Rigctl client sent invalid command: '{0}'", cmd);

0 commit comments

Comments
 (0)