kopia lustrzana https://github.com/Hamlib/Hamlib
Minimize 0x25cmdfails resets to only when satmode changes
https://github.com/Hamlib/Hamlib/issues/741pull/750/head
rodzic
7a3f00c57f
commit
756f8052fc
|
@ -5944,7 +5944,11 @@ int icom_get_split_vfo(RIG *rig, vfo_t vfo, split_t *split, vfo_t *tx_vfo)
|
||||||
if (rig->caps->has_get_func & RIG_FUNC_SATMODE)
|
if (rig->caps->has_get_func & RIG_FUNC_SATMODE)
|
||||||
{
|
{
|
||||||
rig_get_func(rig, RIG_VFO_CURR, RIG_FUNC_SATMODE, &satmode);
|
rig_get_func(rig, RIG_VFO_CURR, RIG_FUNC_SATMODE, &satmode);
|
||||||
priv->x25cmdfails = satmode; // reset this so it tries again
|
if (satmode != rig->state.cache.satmode)
|
||||||
|
{
|
||||||
|
rig_debug(RIG_DEBUG_VERBOSE, "%s(%d): satmode changed to reset x25cmdfails\n", __func__, __LINE__);
|
||||||
|
priv->x25cmdfails = satmode; // reset this so it tries again
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rig->state.cache.satmode = satmode;
|
rig->state.cache.satmode = satmode;
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BACKEND_VER "20210706"
|
#define BACKEND_VER "20210715"
|
||||||
|
|
||||||
#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