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/776/head
rodzic
b41f706eda
commit
06513a6869
|
@ -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))
|
|| rig->state.current_vfo == RIG_VFO_CURR))
|
||||||
{
|
{
|
||||||
TRACE;
|
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__,
|
rig_debug(RIG_DEBUG_VERBOSE, "%s: #2 icmode=%d, icmode_ext=%d\n", __func__,
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif
|
#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_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)
|
#define ICOM_GET_VFO_NUMBER(vfo) (ICOM_IS_SECONDARY_VFO(vfo) ? 0x01 : 0x00)
|
||||||
|
|
Ładowanie…
Reference in New Issue