Fix SDR++ giving wrong answer for get_powerstat

https://github.com/Hamlib/Hamlib/issues/1266
pull/1274/head
Mike Black W9MDB 2023-04-10 09:37:01 -05:00
rodzic 6c1d83ed86
commit 905c9fff95
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -2052,7 +2052,10 @@ static int netrigctl_get_powerstat(RIG *rig, powerstat_t *status)
if (ret > 0)
{
*status = atoi(buf);
int offset=0;
// see if there is a RPRT answer to make SDR++ happy
if (strstr(buf,"RPRT")) offset=4;
*status = atoi(&buf[offset]);
}
else
{
@ -2732,7 +2735,7 @@ struct rig_caps netrigctl_caps =
RIG_MODEL(RIG_MODEL_NETRIGCTL),
.model_name = "NET rigctl",
.mfg_name = "Hamlib",
.version = "20204009.0",
.version = "20204010.0",
.copyright = "LGPL",
.status = RIG_STATUS_STABLE,
.rig_type = RIG_TYPE_OTHER,