Add answering code for rigctl \get_powerstat

* Answer "1" (Power is ON) to \get_powerstat inquiry
pull/1104/head
Kenji Rikitake 2023-06-25 13:51:51 +09:00
rodzic 5acdab0d22
commit aa929a1e79
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

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