For Kenwood rigs set_freq now reads VFO to see if it needs changing

https://github.com/Hamlib/Hamlib/issues/863
pull/875/head
Mike Black W9MDB 2021-11-09 13:05:05 -06:00
rodzic d6541eba0a
commit 40546d9e5a
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -1588,6 +1588,7 @@ int kenwood_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
char freqbuf[16];
unsigned char vfo_letter = '\0';
vfo_t tvfo;
freq_t tfreq = 0;
int err;
struct kenwood_priv_data *priv = rig->state.priv;
@ -1607,6 +1608,13 @@ int kenwood_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
if (RIG_OK != err) { RETURNFUNC(err); }
}
rig_get_freq(rig, tvfo, &tfreq);
if (tfreq == freq)
{
rig_debug(RIG_DEBUG_TRACE, "%s: no freq change needed\n", __func__);
RETURNFUNC(RIG_OK);
}
switch (tvfo)
{
case RIG_VFO_A: