Fix FLRig reading of bandwith when FIXED or "k" is read back

pull/1532/head
Mike Black W9MDB 2024-03-25 11:29:18 -05:00
rodzic 31ea63b2f3
commit 624e00dcb4
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -1811,9 +1811,11 @@ static int flrig_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
*width = atoi(p);
if (strstr(p, "k")) { *width *= 10000; }
if (strstr(p, "k")) { *width = *width * 1000; }
if (strcmp(p, "FIXED"))
rig_debug(RIG_DEBUG_ERR, "%s: p=%s, *width=%d\n", __func__, p, (int)(*width));
if (strcmp(p, "FIXED") == 0)
{
switch (*mode)
{