If icom.c rig_get_freq is called and VFO is None then VFO gets set to the requexted VFO

https://github.com/Hamlib/Hamlib/issues/231
pull/234/head
mdblack98 2020-05-01 10:35:16 -05:00
rodzic 81c21ee314
commit 2991d43e26
2 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -1095,6 +1095,13 @@ int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
rig_debug(RIG_DEBUG_VERBOSE, "%s: using vfo=%s\n", __func__,
rig_strvfo(vfo));
if (priv->curr_vfo == RIG_VFO_NONE) {
retval = rig_set_vfo(rig, vfo);
if (retval != RIG_OK) {
rig_debug(RIG_DEBUG_ERR, "%s: set_vfo failed? retval=%s\n", __func__, strerror(retval));
}
}
retval = icom_transaction(rig, cmd, subcmd, NULL, 0, freqbuf, &freq_len);
if (retval != RIG_OK)

Wyświetl plik

@ -30,7 +30,7 @@
#include <sys/time.h>
#endif
#define BACKEND_VER "20200426"
#define BACKEND_VER "20200501"
/*
* defines used by comp_cal_str in rig.c