kopia lustrzana https://gitlab.com/eliggett/wfview
Merge branch 'wsjtx-fix' into pbt-color-picker
commit
2128e6fc10
40
rigctld.cpp
40
rigctld.cpp
|
@ -1227,27 +1227,39 @@ void rigCtlClient::socketReadyRead()
|
||||||
else if (command.length() > 0 && (command[0] == '\x88' || command[0] == "get_powerstat"))
|
else if (command.length() > 0 && (command[0] == '\x88' || command[0] == "get_powerstat"))
|
||||||
{
|
{
|
||||||
|
|
||||||
QString resp;
|
QString resp;
|
||||||
if (longReply && command.length() > 1) {
|
if (longReply) {
|
||||||
resp.append(QString("Power Status: "));
|
resp.append(QString("Power Status: "));
|
||||||
}
|
}
|
||||||
resp.append(QString("%1").arg(1)); // Always reply with ON
|
resp.append(QString("%1").arg(1)); // Always reply with ON
|
||||||
response.append(resp);
|
response.append(resp);
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (command.length() > 1 && (command[0] == '\x87' || command[0] == "set_powerstat"))
|
else if (command.length() > 1 && (command[0] == '\x87' || command[0] == "set_powerstat"))
|
||||||
{
|
{
|
||||||
setCommand = true;
|
setCommand = true;
|
||||||
if (command[1] == "0")
|
if (command[1] == "0")
|
||||||
{
|
{
|
||||||
rigState->set(POWERONOFF, false, true);
|
rigState->set(POWERONOFF, false, true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
rigState->set(POWERONOFF, true, true);
|
rigState->set(POWERONOFF, true, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (command.length() > 0 && (command[0] == '\xa3' || command[0] == "get_lock_mode"))
|
||||||
|
{
|
||||||
|
QString resp;
|
||||||
|
if (longReply) {
|
||||||
|
resp.append(QString("Locked: "));
|
||||||
}
|
}
|
||||||
|
resp.append(QString("%1").arg(0)); // Always reply with RIG_OK (0)
|
||||||
|
response.append(resp);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
qInfo(logRigCtlD()) << "Unimplemented command" << commands;
|
qInfo(logRigCtlD()) << "Unimplemented command" << commands;
|
||||||
|
if (command.length() > 0)
|
||||||
|
qInfo(logRigCtlD()) << "Initial command" << command[0];
|
||||||
|
|
||||||
}
|
}
|
||||||
if (longReply) {
|
if (longReply) {
|
||||||
if (command.length() == 2)
|
if (command.length() == 2)
|
||||||
|
|
Ładowanie…
Reference in New Issue