k3.c round bandwidth to 10Hz for K4 and 50Hz for other Elecraft rigs

https://github.com/Hamlib/Hamlib/issues/563
pull/574/head
Michael Black W9MDB 2021-03-01 17:06:22 -06:00
rodzic 260c74653e
commit 28f565a8ef
1 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -1184,7 +1184,16 @@ int k3_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
}
#endif
// width is 50Hz rounded down
width += 50;
struct kenwood_priv_data *priv = rig->state.priv;
if (priv->is_k4)
{
width += 10; // rounds to 10Hz
}
else
{
width += 50;
}
if (width > 99999) width = 99999;
if (vfo == RIG_VFO_B)