Minimize 0x25cmdfails resets to only when satmode changes

https://github.com/Hamlib/Hamlib/issues/741
pull/750/head
Mike Black W9MDB 2021-07-15 10:19:33 -05:00
rodzic 7a3f00c57f
commit 756f8052fc
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -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)
{
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;

Wyświetl plik

@ -30,7 +30,7 @@
#include <sys/time.h>
#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_GET_VFO_NUMBER(vfo) (ICOM_IS_SECONDARY_VFO(vfo) ? 0x01 : 0x00)