Fix for get_powerstat

merge-requests/5/merge
Phil Taylor 2021-08-06 12:50:56 +01:00
rodzic 6b34d500f3
commit a945988671
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -568,12 +568,14 @@ void rigCtlClient::socketReadyRead()
} }
else if (command[0] == 0x88 || command[0] == "get_powerstat") else if (command[0] == 0x88 || command[0] == "get_powerstat")
{ {
/*
QString resp; QString resp;
if (longReply && command.length() > 1) { 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); response.append(resp);
*/
} }
else if (command.length() > 1 && command[0] == 0x87 || command[0] == "set_powerstat") else if (command.length() > 1 && command[0] == 0x87 || command[0] == "set_powerstat")
{ {