kopia lustrzana https://github.com/Hamlib/Hamlib
Remove another unneeded vfo swap from icom rigs
https://github.com/Hamlib/Hamlib/issues/762 https://github.com/Hamlib/Hamlib/issues/430pull/788/head
rodzic
83590a0868
commit
c04c4cbd2a
|
@ -1973,8 +1973,12 @@ int icom_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
|
|||
|| rig->state.current_vfo == RIG_VFO_CURR))
|
||||
{
|
||||
TRACE;
|
||||
swapvfos = 1;
|
||||
rig_set_vfo(rig, RIG_VFO_B);
|
||||
|
||||
if (!(rig->caps->targetable_vfo & RIG_TARGETABLE_MODE))
|
||||
{
|
||||
swapvfos = 1;
|
||||
rig_set_vfo(rig, RIG_VFO_B);
|
||||
}
|
||||
}
|
||||
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: #2 icmode=%d, icmode_ext=%d\n", __func__,
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
#define BACKEND_VER "20210822"
|
||||
#define BACKEND_VER "20210824"
|
||||
|
||||
#define ICOM_IS_SECONDARY_VFO(vfo) ((vfo) & (RIG_VFO_B | RIG_VFO_SUB | RIG_VFO_SUB_B | RIG_VFO_MAIN_B))
|
||||
#define ICOM_GET_VFO_NUMBER(vfo) (ICOM_IS_SECONDARY_VFO(vfo) ? 0x01 : 0x00)
|
||||
|
|
Ładowanie…
Reference in New Issue