kopia lustrzana https://github.com/Hamlib/Hamlib
Return 10,000 for bandwidth for Flrig when "FIXED" is returned
rodzic
7831dfc311
commit
a96a97ae3c
|
@ -143,7 +143,7 @@ struct rig_caps flrig_caps =
|
||||||
RIG_MODEL(RIG_MODEL_FLRIG),
|
RIG_MODEL(RIG_MODEL_FLRIG),
|
||||||
.model_name = "",
|
.model_name = "",
|
||||||
.mfg_name = "FLRig",
|
.mfg_name = "FLRig",
|
||||||
.version = "20240222.0",
|
.version = "20240302.0",
|
||||||
.copyright = "LGPL",
|
.copyright = "LGPL",
|
||||||
.status = RIG_STATUS_STABLE,
|
.status = RIG_STATUS_STABLE,
|
||||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||||
|
@ -1806,8 +1806,14 @@ static int flrig_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
|
||||||
|
|
||||||
/* we might get two values and then we want the 2nd one */
|
/* we might get two values and then we want the 2nd one */
|
||||||
if (strchr(value, '|') != NULL) { p = strchr(value, '|') + 1; }
|
if (strchr(value, '|') != NULL) { p = strchr(value, '|') + 1; }
|
||||||
|
|
||||||
*width = atoi(p);
|
*width = atoi(p);
|
||||||
|
if (strcmp(p, "FIXED"))
|
||||||
|
{
|
||||||
|
switch(*mode)
|
||||||
|
{
|
||||||
|
case RIG_MODE_FM: *width = 10000;break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vfo == RIG_VFO_A)
|
if (vfo == RIG_VFO_A)
|
||||||
|
|
Ładowanie…
Reference in New Issue