Add answering code for rigctl \get_powerstat

* Answer "1" (Power is ON) to \get_powerstat inquiry
This commit is contained in:
Kenji Rikitake 2023-06-25 13:51:51 +09:00
parent 5acdab0d22
commit aa929a1e79

View File

@ -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);