kopia lustrzana https://github.com/Hamlib/Hamlib
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/231pull/234/head
rodzic
81c21ee314
commit
2991d43e26
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue