always use rounding of frequencies, not only in split mode

pull/19/head
Sebastian Denz 2018-12-05 20:59:31 +01:00
rodzic 9126815811
commit 4e1a77704f
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -340,7 +340,6 @@ static int thd74_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
if (priv->split == RIG_SPLIT_ON)
{
vfo = RIG_VFO_B;
freq = thd74_round_fm_freq(freq);
}
retval = thd74_get_freq_info(rig, vfo, buf);
@ -350,6 +349,7 @@ static int thd74_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
return retval;
}
freq = thd74_round_fm_freq(freq);
sprintf(fbuf, "%010"PRIll, (int64_t)freq);
memcpy(buf + 5, fbuf, 10);
retval = kenwood_simple_transaction(rig, buf, 72);