kopia lustrzana https://github.com/Hamlib/Hamlib
If get_powerstat fails assume rig is powered on -- should fix sdr++ problem
https://github.com/Hamlib/Hamlib/issues/1186pull/1191/head
rodzic
df8b88072a
commit
5c4c2f7748
|
@ -2051,6 +2051,15 @@ static int netrigctl_get_powerstat(RIG *rig, powerstat_t *status)
|
||||||
|
|
||||||
ret = netrigctl_transaction(rig, cmd, strlen(cmd), buf);
|
ret = netrigctl_transaction(rig, cmd, strlen(cmd), buf);
|
||||||
|
|
||||||
|
if (ret == 1)
|
||||||
|
{
|
||||||
|
// was causing problems with sdr++ since it does not have PS command
|
||||||
|
// a return of 1 should indicate there is no powerstat command available
|
||||||
|
// so we fake the ON status
|
||||||
|
*status = RIG_POWER_ON;
|
||||||
|
return RIG_OK;
|
||||||
|
}
|
||||||
|
|
||||||
if (ret <= 0)
|
if (ret <= 0)
|
||||||
{
|
{
|
||||||
return (ret < 0) ? ret : -RIG_EPROTO;
|
return (ret < 0) ? ret : -RIG_EPROTO;
|
||||||
|
@ -2725,7 +2734,7 @@ struct rig_caps netrigctl_caps =
|
||||||
RIG_MODEL(RIG_MODEL_NETRIGCTL),
|
RIG_MODEL(RIG_MODEL_NETRIGCTL),
|
||||||
.model_name = "NET rigctl",
|
.model_name = "NET rigctl",
|
||||||
.mfg_name = "Hamlib",
|
.mfg_name = "Hamlib",
|
||||||
.version = "20221201.0",
|
.version = "20221212.0",
|
||||||
.copyright = "LGPL",
|
.copyright = "LGPL",
|
||||||
.status = RIG_STATUS_STABLE,
|
.status = RIG_STATUS_STABLE,
|
||||||
.rig_type = RIG_TYPE_OTHER,
|
.rig_type = RIG_TYPE_OTHER,
|
||||||
|
|
Ładowanie…
Reference in New Issue