Get dummy rig to work with grig by disallowing empty "u" calls

Hamlib-4.5.4
Mike Black W9MDB 2023-01-04 15:39:23 -06:00
rodzic 2f4993cdac
commit 7200858735
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -1925,6 +1925,8 @@ static int netrigctl_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status)
if (ret != RIG_OK) { return ret; }
if (strlen(rig_strfunc(func)) == 0) { return -RIG_ENAVAIL; }
SNPRINTF(cmd, sizeof(cmd), "u%s %s\n", vfostr, rig_strfunc(func));
ret = netrigctl_transaction(rig, cmd, strlen(cmd), buf);
@ -2734,7 +2736,7 @@ struct rig_caps netrigctl_caps =
RIG_MODEL(RIG_MODEL_NETRIGCTL),
.model_name = "NET rigctl",
.mfg_name = "Hamlib",
.version = "20221214.0",
.version = "20230104.0",
.copyright = "LGPL",
.status = RIG_STATUS_STABLE,
.rig_type = RIG_TYPE_OTHER,