Skip to content

Commit

Permalink
Return 10,000 for bandwidth for Flrig when "FIXED" is returned
Browse files Browse the repository at this point in the history
  • Loading branch information
mdblack98 committed Mar 2, 2024
1 parent 7831dfc commit a96a97a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions rigs/dummy/flrig.c
Expand Up @@ -143,7 +143,7 @@ struct rig_caps flrig_caps =
RIG_MODEL(RIG_MODEL_FLRIG),
.model_name = "",
.mfg_name = "FLRig",
.version = "20240222.0",
.version = "20240302.0",
.copyright = "LGPL",
.status = RIG_STATUS_STABLE,
.rig_type = RIG_TYPE_TRANSCEIVER,
Expand Down Expand Up @@ -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 */
if (strchr(value, '|') != NULL) { p = strchr(value, '|') + 1; }

*width = atoi(p);
if (strcmp(p, "FIXED"))
{
switch(*mode)
{
case RIG_MODE_FM: *width = 10000;break;
}
}
}

if (vfo == RIG_VFO_A)
Expand Down

0 comments on commit a96a97a

Please sign in to comment.