Fix AGC level display in rigctld

https://github.com/Hamlib/Hamlib/issues/1155
pull/1242/head
Mike Black W9MDB 2023-01-17 23:54:05 -06:00
rodzic 16af6ae3aa
commit f392cc4c18
3 zmienionych plików z 4 dodań i 3 usunięć

1
NEWS
Wyświetl plik

@ -25,6 +25,7 @@ Version 4.6
* Fix FTDX3000 rig split
Version 4.5.5
* Fix AGC level display in rigctld
* Change FTDX10 to no serial handshake
* Add TS2000 to has_ps exception
* Add FT991 to 60M exception

Wyświetl plik

@ -814,7 +814,7 @@ static int netrigctl_open(RIG *rig)
int i = 0;
char *p = strtok(value, " ");
rig->caps->agc_levels[0] = RIG_AGC_NONE; // default value gets overwritten
rig->caps->agc_level_count = 1;
rig->caps->agc_level_count = 0;
while (p)
{
@ -2735,7 +2735,7 @@ struct rig_caps netrigctl_caps =
RIG_MODEL(RIG_MODEL_NETRIGCTL),
.model_name = "NET rigctl",
.mfg_name = "Hamlib",
.version = "20230106.0",
.version = "20230117.0",
.copyright = "LGPL",
.status = RIG_STATUS_STABLE,
.rig_type = RIG_TYPE_OTHER,

Wyświetl plik

@ -939,7 +939,7 @@ int rig_sprintf_agc_levels(RIG *rig, char *str, int lenstr)
{
if (strlen(str) > 0) { strcat(str, " "); }
sprintf(tmpbuf, "%d=%s", i,
sprintf(tmpbuf, "%d=%s", rig->caps->agc_levels[i],
rig_stragclevel(rig->caps->agc_levels[i]));
if (strlen(str) + strlen(tmpbuf) < lenstr - 1)